Skip to content

Commit

Permalink
Mock setupDevtools for RN 0.36 (jestjs#1990)
Browse files Browse the repository at this point in the history
* add mock for InitializeCore.js

* change ... to Object.assign

* disable flowtype for mock module

* mock setupDevtools

* Update setup.js
  • Loading branch information
edvinerikson authored and cpojer committed Oct 26, 2016
1 parent 24f9048 commit bc5c7dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest-react-native/src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
const mockReactNative = require('./index');

jest
.mock('ReactNativeDefaultInjection')
.mock('ReactNativeDefaultInjection')
.mock('setupDevtools')
.mock('Image', () => mockReactNative.mockComponent('Image'))
.mock('Text', () => mockReactNative.mockComponent('Text'))
.mock('TextInput', () => mockReactNative.mockComponent('TextInput'))
Expand Down

0 comments on commit bc5c7dd

Please sign in to comment.