Bit-Nation / BITNATION-Pangea-react

Pangea Jurisdiction Alpha client v. 03 frontend repository
MIT License
7 stars 5 forks source link

Fix warnings: duplicated libraries #12

Closed dcfranca closed 6 years ago

dcfranca commented 7 years ago

Log:

duplicate manual mock found:
  Module name: ErrorUtils
  Duplicate Mock path: /Users/dfranca/workspace/bitnation/BITNATION-Pangea-react/node_modules/react-native/Libraries/Core/__mocks__/ErrorUtils.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
/Users/dfranca/workspace/bitnation/BITNATION-Pangea-react/node_modules/react-native/Libraries/Core/__mocks__/ErrorUtils.js
 Please delete one of the following two files:
 /Users/dfranca/workspace/bitnation/BITNATION-Pangea-react/node_modules/react-native/node_modules/fbjs/lib/__mocks__/ErrorUtils.js
/Users/dfranca/workspace/bitnation/BITNATION-Pangea-react/node_modules/react-native/Libraries/Core/__mocks__/ErrorUtils.js
lextiz commented 7 years ago

@danielfranca How can I reproduce this warning? Tried building and running the app and the tests but the warning does not appear.

dcfranca commented 7 years ago

@lextiz should be when you run the tests, don't you receive any warning during the tests run?

lextiz commented 7 years ago

No warnings after running npm test. Can you reproduce it?

dcfranca commented 7 years ago

I can... Can anyone else reproduce it?

Otherwise might be something on my environment only and then we can close this issue

lextiz commented 7 years ago

Which version of npm do you have? Did you try wiping the npm cache and removing node_modules folder?

jetpack3331 commented 7 years ago

@danielfranca It looks, like you didn't have correct jest config and node_modules isn't in ignored modules for jest

jetpack3331 commented 7 years ago

I'm without problems, so for me, we can close it

florianlenz commented 6 years ago

I am gonna close this issue. If someone experience the problem feel free to reopen it.