mirror of
https://github.com/status-im/react-native.git
synced 2025-01-11 18:14:14 +00:00
Remove some automocks from tests
Summary: They are bad :D And they affect us when trying to migrate to the babel runtime helpers Reviewed By: pvdz Differential Revision: D9829462 fbshipit-source-id: 15240a56e707e13775d57714646e4960cfe202df
This commit is contained in:
parent
ade04d0260
commit
c58fb3b73a
@ -10,12 +10,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
jest
|
||||
.enableAutomock()
|
||||
.unmock('BatchedBridge')
|
||||
.unmock('defineLazyObjectProperty')
|
||||
.unmock('MessageQueue')
|
||||
.unmock('NativeModules');
|
||||
jest.unmock('NativeModules');
|
||||
|
||||
let BatchedBridge;
|
||||
let NativeModules;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
jest.enableAutomock().unmock('InteractionMixin');
|
||||
jest.mock('InteractionManager');
|
||||
|
||||
describe('InteractionMixin', () => {
|
||||
let InteractionManager;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
jest.enableAutomock().unmock('WebSocket');
|
||||
jest.mock('NativeEventEmitter');
|
||||
jest.setMock('NativeModules', {
|
||||
WebSocketModule: {
|
||||
connect: () => {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user