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

Endless testing loop when using --watch and --coverage together. #979

Closed
jcowgar opened this issue May 9, 2016 · 3 comments
Closed

Endless testing loop when using --watch and --coverage together. #979

jcowgar opened this issue May 9, 2016 · 3 comments

Comments

@jcowgar
Copy link

jcowgar commented May 9, 2016

It's just a guess, but I'm assuming that once the tests are complete, writing the coverage files causes a file system change and jest starts the test cycle over again. So, in the end, you run with these parameters, change some of your code, save, then jest tests, writes coverage, tests, writes coverage, etc... and it never stops. You have to kill the process.

@vvo
Copy link
Contributor

vvo commented Jun 28, 2016

Fixed this by specifying:

{
  "jest": {
    "coverageDirectory": ".coverage/"
  }
}

in package.json

I have been trying to trace the infinite watch loop in the code without luck.

@cpojer
Copy link
Member

cpojer commented Aug 30, 2016

Fixed in #1515 and Jest 15 (released sometime this week).

@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 14, 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

3 participants