-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Don't ignore node_modules #7145
Comments
You can unignore some folders inside "haste": {
"providesModuleNodeModules": [
"package-inside-node_modules-1",
"package-inside-node_modules-2",
]
}, Also, if you want to collect coverage, use this solution: #5046 (comment). |
Hi, thank you! I am still a little bit uncertain on how exactly to use this. Which |
I found a solution now, just ignore my previous question. Thank you @reklatsmasters ! I am not sure that i should close the issue yet as the haste config should really be documented. Might just raise a PR for that. So the "solution" was to do what you @reklatsmasters suggested. I am quite new to working with JEST so i didn't realise the heavy caching that jest is doing for us. For future reference. Every time one make a configuration change like this, just remember to run jest with |
I guess this is partly documented in: https://jestjs.io/docs/en/tutorial-react-native#providesmodule so i'll close for now |
@RuneKR Can you please share what you figured out to answer your questions above? As someone trying to get coverage for the source in my |
Hi sure thing! I need to know a bit more about your project in order to provide the right code. I have my configuration in the package.json:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
This is basically a replica of: #1995 (comment)
Whenever you structure your project packages/node_modules/**/* the test doesn't get picked up. Have a fix been implemented via a config? I cannot find the solution at least
My project is organised:
package.json
packages
@scope
packename
Tests can be run if i run the tests from the root
package.json
but not from any of thepackage.json
underpackages/node_modules/
. If i renamepackages/node_modules
to anything else then it works.The text was updated successfully, but these errors were encountered: