Skip to content
Permalink
Browse files

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
  • Loading branch information...
mjesun authored and facebook-github-bot committed May 23, 2018
1 parent 3e0ebc7 commit 390ded871cb905d149e9c1f4a082e67a7ec7addb
Showing with 3 additions and 3 deletions.
  1. +1 −1 Libraries/Animated/src/__tests__/AnimatedNative-test.js
  2. +2 −2 local-cli/util/__mocks__/log.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(),
},
};

@@ -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.
You can’t perform that action at this time.