-
-
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
Tests picked up in yarn cache directory #3827
Comments
I previously ran into this issue with CRA and tried to fix it there: facebook/create-react-app#2063 but it's probably better to update Jest's defaults. If there's support for this I'm happy to open a PR. |
Or perhaps it would be good to ignore all hidden directories that start with a |
@cpojer what do you think? |
For anyone hitting this we'll be fixing this by updating the cache directory location. Follow along at: heroku/heroku-buildpack-nodejs#439 |
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. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When
$HOME
is the same as the application directory yarn will default to putting its cache directory at$APP_DIR/.cache/yarn/v1/...
and Jest will pick up tests in dependencies.This happens to users trying to use Jest with Heroku CI, where
$HOME
is/app
.What is the expected behavior?
Jest should ignore the yarn cache directory as a smart default like it currently does for
node_modules
.The text was updated successfully, but these errors were encountered: