mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 02:24:23 +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';
|
'use strict';
|
||||||
|
|
||||||
jest
|
jest.unmock('NativeModules');
|
||||||
.enableAutomock()
|
|
||||||
.unmock('BatchedBridge')
|
|
||||||
.unmock('defineLazyObjectProperty')
|
|
||||||
.unmock('MessageQueue')
|
|
||||||
.unmock('NativeModules');
|
|
||||||
|
|
||||||
let BatchedBridge;
|
let BatchedBridge;
|
||||||
let NativeModules;
|
let NativeModules;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
jest.enableAutomock().unmock('InteractionMixin');
|
jest.mock('InteractionManager');
|
||||||
|
|
||||||
describe('InteractionMixin', () => {
|
describe('InteractionMixin', () => {
|
||||||
let InteractionManager;
|
let InteractionManager;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
jest.enableAutomock().unmock('WebSocket');
|
jest.mock('NativeEventEmitter');
|
||||||
jest.setMock('NativeModules', {
|
jest.setMock('NativeModules', {
|
||||||
WebSocketModule: {
|
WebSocketModule: {
|
||||||
connect: () => {},
|
connect: () => {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user