From 0ac1839e1cdbbe9fce9ae3c723e9b0cfbdab632c Mon Sep 17 00:00:00 2001 From: Aleksandra Cynk Date: Fri, 11 Oct 2024 17:50:08 +0200 Subject: [PATCH] Type fix --- .../examples/RuntimeTests/ReJest/matchers/snapshotMatchers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common-app/src/examples/RuntimeTests/ReJest/matchers/snapshotMatchers.ts b/apps/common-app/src/examples/RuntimeTests/ReJest/matchers/snapshotMatchers.ts index 1fdf7c49b8c..6eb26a3e5bf 100644 --- a/apps/common-app/src/examples/RuntimeTests/ReJest/matchers/snapshotMatchers.ts +++ b/apps/common-app/src/examples/RuntimeTests/ReJest/matchers/snapshotMatchers.ts @@ -19,7 +19,7 @@ function compareSnapshot( const expectMismatch = jsValue < 0 && expectNegativeValueMismatch; let valuesAreMatching = isEqual(jsValue, nativeValue); - if (key === 'opacity' && jsValue === 1 && nativeValue === undefined) { + if ((key as string) === 'opacity' && jsValue === 1 && nativeValue === undefined) { // undefined opacity may get translated into 1, as it is the default value valuesAreMatching = true; }