-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Jest 21 Fails in CI with DuplicateHasteCandidatesError #4682
Jest 21 Fails in CI with DuplicateHasteCandidatesError #4682
Comments
I recommend adding the Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. Thank you :) |
I ran into the same issue on an older Node/npm combo. My package.json looks like this with both "modulePathIgnorePatterns": [
"npm-cache",
".npm"
] |
This helped |
I also experienced the same issue, but with almost all node modules. Symptomatically, this happens only in Jenkins, but not when I run tests locally. Here is an excerpt from Jenkins console output:
and the list goes on. What can cause this in the first place? I would like to know why I need to ignore all node modules, and what is the side effect of this in my particular case. |
@bdimitrovski Try ignoring that foder in jest config:
|
Unfortunately I'd tried Then finally I decided to instal /* config-overrides.js */
module.exports = {
jest(config) {
config.modulePathIgnorePatterns = ['.cache'];
return config;
},
}; |
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. |
Jest 21 Fails in CI with
DuplicateHasteCandidatesError
Synopsis:
After upgrading to Jest
21.x
from Jest20.x
, CI jobs began failing. Jest continues to work as expected in other environments.Current Behavior:
When running in Jenkins 2, Jest fails with the following error:
Expected Behavior:
Jest runs without error.
Additional Information:
21.0.0
jest-haste-map
, and I never opted-in to using it, I do not understand why it is being used, at least in our CI environment.Thanks for creating a great product, and thanks in advance for your help on this issue! ❤️
The text was updated successfully, but these errors were encountered: