Jest builds unable to exit
See original GitHub issuecitation-js
requires sync-request
which in turn uses sync-rpc
. Simply importing the citation-js
package causes my CI build to fail as Jest doesn’t exit and throws the following warning:
This happens when running jest 24.5.0 on node 10.14.1. I’ve submitted an issue on sync-rcp
here - but am unsure where in the stack this open handler needs to be addressed.
Any suggestions for working around this?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Jest process doesn't quit after last test completes #1456 - GitHub
The user will have to force quit the process with ctrl-c. My theory is that not all resources are being cleaned up appropriately...
Read more >Jest doesn't exit properly - node.js - Stack Overflow
I have just started using jest and after few experiments, the following worked for me. Modify app.js as follows during testing,
Read more >Configuring Jest
For example, with the following configuration jest will fail if ... Set reference to mongod in order to close the server during teardown....
Read more >Troubleshooting | Stryker Mutator
Build command fails ... The initial test run might fail when you're using ts-jest or ts-node. ... Run with `--passWithNoTests` to exit with...
Read more >Testing process.exit with Jest in NodeJS - tsmx
With NodeJS, Jest is a very popular and powerful testing library. ... the test process before it is finished wich would cause a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That did the trick! Smooth sailing on my end now.
Thanks so much!
I’ve just released
0.5.0-alpha.2
with a fix. Sorry for the peer dependency warnings, I’ll fix that next release.