Skip to content
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

Closed
gaelollivier opened this issue Jan 10, 2017 · 4 comments
Closed

All tests are re-run when using --testPathPattern #2546

gaelollivier opened this issue Jan 10, 2017 · 4 comments

Comments

@gaelollivier
Copy link

When running jest with --testPathPattern src/.* or just jest [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 in create-react-app while having only the relevant files run on changes, I would really appreciate it ! :)

@cpojer
Copy link
Member

cpojer commented Jan 11, 2017

Are you talking about --watch mode?

@gaelollivier
Copy link
Author

gaelollivier commented Jan 11, 2017

Yep, sorry I didn't mention it because it's default with create-react-app "test" command

@cpojer
Copy link
Member

cpojer commented Jan 11, 2017

I guess this is a duplicate of #1860 If we implement this, it should respect the argument coming from the cli.

@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants