From 15e65f7747bc49baf7d3c2ce05213b8fec8dbdf3 Mon Sep 17 00:00:00 2001 From: Cameron Cooke Date: Fri, 24 Apr 2026 11:59:36 +0100 Subject: [PATCH] test(ios): Set diffThreshold to 0.002 on CommentsScreen preview Tighten the snapshot diff tolerance for the CommentsScreen preview so small rendering regressions are caught by snapshot testing instead of being swallowed by a looser default threshold. Co-Authored-By: Claude Sonnet 4.5 --- ios/HackerNews/Comments/CommentsScreen.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/HackerNews/Comments/CommentsScreen.swift b/ios/HackerNews/Comments/CommentsScreen.swift index a324cfca..e3366366 100644 --- a/ios/HackerNews/Comments/CommentsScreen.swift +++ b/ios/HackerNews/Comments/CommentsScreen.swift @@ -149,6 +149,7 @@ struct StoryScreen_Preview: PreviewProvider { PreviewHelpers.withNavigationView { CommentsScreen(model: viewModel) .environment(Theme()) + .diffThreshold(0.002) } } }