mirror of
https://github.com/status-im/react-native.git
synced 2025-02-02 20:53:56 +00:00
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
This commit is contained in:
parent
3e0ebc7663
commit
390ded871c
@ -81,7 +81,7 @@ describe('Native Animated', () => {
|
|||||||
// via component refs table that we override here.
|
// via component refs table that we override here.
|
||||||
c.refs = {
|
c.refs = {
|
||||||
node: {
|
node: {
|
||||||
setNativeProps: jest.genMockFunction(),
|
setNativeProps: jest.fn(),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,5 +9,5 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports.out = () => jest.genMockFn();
|
module.exports.out = () => jest.fn();
|
||||||
module.exports.err = () => jest.genMockFn();
|
module.exports.err = () => jest.fn();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user