diff --git a/Libraries/BatchedBridge/__tests__/NativeModules-test.js b/Libraries/BatchedBridge/__tests__/NativeModules-test.js index fa6208b4a..821c3261a 100644 --- a/Libraries/BatchedBridge/__tests__/NativeModules-test.js +++ b/Libraries/BatchedBridge/__tests__/NativeModules-test.js @@ -10,12 +10,7 @@ 'use strict'; -jest - .enableAutomock() - .unmock('BatchedBridge') - .unmock('defineLazyObjectProperty') - .unmock('MessageQueue') - .unmock('NativeModules'); +jest.unmock('NativeModules'); let BatchedBridge; let NativeModules; diff --git a/Libraries/Interaction/__tests__/InteractionMixin-test.js b/Libraries/Interaction/__tests__/InteractionMixin-test.js index 929424980..4acfc0fbb 100644 --- a/Libraries/Interaction/__tests__/InteractionMixin-test.js +++ b/Libraries/Interaction/__tests__/InteractionMixin-test.js @@ -10,7 +10,7 @@ 'use strict'; -jest.enableAutomock().unmock('InteractionMixin'); +jest.mock('InteractionManager'); describe('InteractionMixin', () => { let InteractionManager; diff --git a/Libraries/WebSocket/__tests__/WebSocket-test.js b/Libraries/WebSocket/__tests__/WebSocket-test.js index 750e1a233..62e6f14c3 100644 --- a/Libraries/WebSocket/__tests__/WebSocket-test.js +++ b/Libraries/WebSocket/__tests__/WebSocket-test.js @@ -10,7 +10,7 @@ 'use strict'; -jest.enableAutomock().unmock('WebSocket'); +jest.mock('NativeEventEmitter'); jest.setMock('NativeModules', { WebSocketModule: { connect: () => {},