From b1309188f35f0e83dce20a411aa84d3ae5e5e22d Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Fri, 23 Oct 2026 16:32:46 -0700 Subject: [PATCH] Tolerate sub-pixel noise in rotated visual tests Summary: Rotated transform screenshots compare pixel-exact, so one anti-aliased edge pixel fails the check. Give the three rotated transform tests the default `threshold`, `includeAA: false`, and `maxDiffPixels` of 100. Genuine rendering changes still alter thousands of pixels. Changelog: [Internal] Differential Revision: D127274477 --- packages/rn-tester/visual-tests/config.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/rn-tester/visual-tests/config.json b/packages/rn-tester/visual-tests/config.json index e1e08c5047c6..d6d45c7a70f6 100644 --- a/packages/rn-tester/visual-tests/config.json +++ b/packages/rn-tester/visual-tests/config.json @@ -4,5 +4,21 @@ "includeAA": true, "maxDiffPixels": 0 }, - "tests": {} + "tests": { + "transform/rotate/default": { + "threshold": 0.1, + "includeAA": false, + "maxDiffPixels": 100 + }, + "transform/rotate-scale/default": { + "threshold": 0.1, + "includeAA": false, + "maxDiffPixels": 100 + }, + "transform/string/default": { + "threshold": 0.1, + "includeAA": false, + "maxDiffPixels": 100 + } + } }