Skip to content

Commit

Permalink
Move out "genMockFunction" and "genMockFn" to "fn"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Miguel Jimenez Esun authored and facebook-github-bot committed May 23, 2018
1 parent 3e0ebc7 commit 390ded8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Libraries/Animated/src/__tests__/AnimatedNative-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Native Animated', () => {
// via component refs table that we override here.
c.refs = {
node: {
setNativeProps: jest.genMockFunction(),
setNativeProps: jest.fn(),
},
};

Expand Down
4 changes: 2 additions & 2 deletions local-cli/util/__mocks__/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

'use strict';

module.exports.out = () => jest.genMockFn();
module.exports.err = () => jest.genMockFn();
module.exports.out = () => jest.fn();
module.exports.err = () => jest.fn();

0 comments on commit 390ded8

Please sign in to comment.