-
-
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
Ignore files in jest watch mode #3923
Comments
Have you can tried adding the file to the |
I did try that but as far as I could tell it didn't affect the watcher |
+1 |
1 similar comment
+1 |
Looking at source of Trying to fix it in PR. Please correct me if I'm wrong. |
#4331 |
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?
feature
What is the current behavior?
When I run
jest --watch
it watches all files and re-runs the tests when one of them changes.What is the expected behavior?
This works as expected except when we use a webpack plugin that generates a
webpack-assets.json
file periodically. After editing a code file, the auto-generated assets file causes the tests to run twice which is slower than it needs to be.It would be really helpful if I could configure the jest watcher to ignore changes to the
webpack-assets.json
file.Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Mac OS X 10.12.5
I know that #2516 was fixed but that solved it for code coverage only. It would be great to have a generic solution to this where we could just ignore files based on a list of patterns.
Jest config
The text was updated successfully, but these errors were encountered: