Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement : Remove warning while running tests #5

Closed
mfrachet opened this issue May 12, 2017 · 0 comments
Closed

Improvement : Remove warning while running tests #5

mfrachet opened this issue May 12, 2017 · 0 comments
Labels

Comments

@mfrachet
Copy link
Owner

When running tests, we got warning like :

est-haste-map: duplicate manual mock found:
  Module name: ReactNative
  Duplicate Mock path: /Users/pc/Soft/rnUx/Example/node_modules/react-native/Libraries/Renderer/src/renderers/native/__mocks__/ReactNative.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
/Users/pc/Soft/rnUx/Example/node_modules/react-native/Libraries/Renderer/src/renderers/native/__mocks__/ReactNative.js
 Please delete one of the following two files:
 /Users/pc/Soft/rnUx/node_modules/react-native/Libraries/Renderer/src/renderers/native/__mocks__/ReactNative.js
/Users/pc/Soft/rnUx/Example/node_modules/react-native/Libraries/Renderer/src/renderers/native/__mocks__/ReactNative.js

or

 console.error node_modules/fbjs/lib/warning.js:36
Warning: ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning.

Would be great to avoid that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant