Skip to content

Commit 390ded8

Browse files
Miguel Jimenez Esunfacebook-github-bot
Miguel Jimenez Esun
authored andcommitted
Move out "genMockFunction" and "genMockFn" to "fn"
Summary: In the upcoming Jest version `genMockFunction` and `genMockFn` are deprecated, so we need to kill them. Reviewed By: rafeca Differential Revision: D8107155 fbshipit-source-id: 4f46ab58e6e34224eb95e9355385da44f005ea94
1 parent 3e0ebc7 commit 390ded8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Libraries/Animated/src/__tests__/AnimatedNative-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('Native Animated', () => {
8181
// via component refs table that we override here.
8282
c.refs = {
8383
node: {
84-
setNativeProps: jest.genMockFunction(),
84+
setNativeProps: jest.fn(),
8585
},
8686
};
8787

local-cli/util/__mocks__/log.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
'use strict';
1111

12-
module.exports.out = () => jest.genMockFn();
13-
module.exports.err = () => jest.genMockFn();
12+
module.exports.out = () => jest.fn();
13+
module.exports.err = () => jest.fn();

0 commit comments

Comments
 (0)