-
Notifications
You must be signed in to change notification settings - Fork 295
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
Jest stops working after too many restarts #168
Comments
What version of Jest do you have? Run From what I can gather, this is an issue with the way Jest handles file watching when |
@seanpoulter thanks for the reply, I've upgraded to |
If the tests aren't updating, are there any hints why in the Jest Output Panel? My hunch is that Jest runs once then starts in watch mode where it defaults to only watching files that have changed based on the status from a git/hg repository (-o/--onlyChanged). If you haven't set up version control, then you'll end up with a vague error message in the Jest output about Here's what that looks like on my end:
|
I've been receiving similar message from Jest. Jest addon does run the initial test successfully, however fails when trying to start the watch mode. My setup
ConfigHere's my module.exports = {
"name": "json-proxy",
"verbose": true,
"testRegex": "/test/.*\\.spec\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
}
}; Debug infoHere's the content of the debug pannel:
Here's the content of the Chrome Dev-tools console:
|
Have you had any luck figuring out the cause @knee-cola? If not, do you have a test case we can use to reproduce the issue? |
While trying to create a test-case I managed to figure it out (@seanpoulter thanks for your question)! The problem was caused by me installing I managed to fix the problem by deleting the It's probably safest option to always install all the modules from CMD/DOS terminal. That way they will work both in in bash and cmd terminal! |
I also have this issue and also use ts-jest, but I think (pretty sure) I installed it thru the dos/cmd prompt... |
Well I'm bi longer sure that installing things from CMD helped. Later I cloned my repo onto another machine and everything worked fine. |
Could you debug the extension with your ts-jest project @obiwanjacobi, or provide a minimal repo we can try? |
Installing watchman fixed this issue for me: Then reload the Jest plugin |
Environment
node -v
: [8.9.0]npm -v
: [5.4.2]Operating system: [macOS v10.12.5]
Steps to Reproduce
Install Jest extension
Restart VS Code
Expected Behavior
Jest extension runs without error
Actual Behavior
Jest extension errors after multiple attempts at running
Task bar says "Jest: stopped (too many restarts)
Jest OUTPUT
Error in console
Package.json scripts:
Let me know if you need any further info
Thanks,
Owen
The text was updated successfully, but these errors were encountered: