From c87bc7326fc2a309ddcda3fe81802deffbaa6e17 Mon Sep 17 00:00:00 2001 From: Hector Ramos Date: Wed, 23 May 2018 12:55:54 -0700 Subject: [PATCH 1/2] Upgrade snapshots --- .../TouchableHighlight-test.js.snap | 9 --------- .../__snapshots__/FlatList-test.js.snap | 9 --------- .../__snapshots__/SectionList-test.js.snap | 16 ---------------- .../VirtualizedList-test.js.snap | 19 ------------------- 4 files changed, 53 deletions(-) diff --git a/Libraries/Components/Touchable/__tests__/__snapshots__/TouchableHighlight-test.js.snap b/Libraries/Components/Touchable/__tests__/__snapshots__/TouchableHighlight-test.js.snap index 6028d74aaa8a21..34d71cc12a523e 100644 --- a/Libraries/Components/Touchable/__tests__/__snapshots__/TouchableHighlight-test.js.snap +++ b/Libraries/Components/Touchable/__tests__/__snapshots__/TouchableHighlight-test.js.snap @@ -2,15 +2,8 @@ exports[`TouchableHighlight renders correctly 1`] = ` } @@ -67,7 +65,6 @@ exports[`FlatList renders all the bells and whistles 1`] = `
} @@ -509,14 +496,12 @@ exports[`SectionList renders all the bells and whistles 1`] = ` exports[`SectionList renders empty list 1`] = ` } @@ -495,7 +488,6 @@ exports[`VirtualizedList renders all the bells and whistles 1`] = `
Date: Wed, 23 May 2018 13:11:53 -0700 Subject: [PATCH 2/2] Replace genMockFn with fn See https://github.com/facebook/jest/pull/6173/files --- Libraries/Animated/src/__tests__/AnimatedNative-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Animated/src/__tests__/AnimatedNative-test.js b/Libraries/Animated/src/__tests__/AnimatedNative-test.js index 8f59d33c57cbb0..d3ff6665cbc81f 100644 --- a/Libraries/Animated/src/__tests__/AnimatedNative-test.js +++ b/Libraries/Animated/src/__tests__/AnimatedNative-test.js @@ -81,7 +81,7 @@ describe('Native Animated', () => { // via component refs table that we override here. c.refs = { node: { - setNativeProps: jest.genMockFunction(), + setNativeProps: jest.fn(), }, };