-
-
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
All tests are re-run when using --testPathPattern #2546
Comments
Are you talking about --watch mode? |
Yep, sorry I didn't mention it because it's default with create-react-app "test" command |
I guess this is a duplicate of #1860 If we implement this, it should respect the argument coming from the cli. |
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. |
When running jest with
--testPathPattern src/.*
or justjest [pattern]
, all tests are re-run when changing a file, whereas without these options only the relevant tests (related to the file that changed) are run.I'm not sure if I'm doing it right but this is quite annoying because of this issue. If there is a better workaround to prevent tests file from outside
src/
to be run increate-react-app
while having only the relevant files run on changes, I would really appreciate it ! :)The text was updated successfully, but these errors were encountered: