From ce73eab9ce6e1a7fc7acecb6267d2262d48f1921 Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Tue, 5 Nov 2019 16:09:29 +0100 Subject: [PATCH] Fix transient test failure --- .../verify/VerificationLoadingScreen.test.tsx | 3 + .../VerificationLoadingScreen.test.tsx.snap | 1157 +---------------- 2 files changed, 4 insertions(+), 1156 deletions(-) diff --git a/packages/mobile/src/verify/VerificationLoadingScreen.test.tsx b/packages/mobile/src/verify/VerificationLoadingScreen.test.tsx index 2a4ad59a665..b182a06dfc0 100644 --- a/packages/mobile/src/verify/VerificationLoadingScreen.test.tsx +++ b/packages/mobile/src/verify/VerificationLoadingScreen.test.tsx @@ -5,6 +5,9 @@ import * as renderer from 'react-test-renderer' import VerificationLoadingScreen from 'src/verify/VerificationLoadingScreen' import { createMockStore } from 'test/utils' +// Mocking the carousel since it seems to cause transient snapshot failures +jest.mock('react-native-snap-carousel') + describe('VerificationLoadingScreen', () => { const store = createMockStore({}) diff --git a/packages/mobile/src/verify/__snapshots__/VerificationLoadingScreen.test.tsx.snap b/packages/mobile/src/verify/__snapshots__/VerificationLoadingScreen.test.tsx.snap index 97798455c38..e9acab24dd7 100644 --- a/packages/mobile/src/verify/__snapshots__/VerificationLoadingScreen.test.tsx.snap +++ b/packages/mobile/src/verify/__snapshots__/VerificationLoadingScreen.test.tsx.snap @@ -63,1162 +63,7 @@ exports[`VerificationLoadingScreen renders correctly 1`] = ` "height": 250, } } - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test 3 - - - - - - - - - - - - - - - - - - - - + />