question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jest builds unable to exit

See original GitHub issue

citation-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:

Screen Shot 2019-09-05 at 1 50 28 PM

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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
isTraviscommented, Sep 11, 2019

That did the trick! Smooth sailing on my end now.

Thanks so much!

1reaction
larsgwcommented, Sep 10, 2019

I’ve just released 0.5.0-alpha.2 with a fix. Sorry for the peer dependency warnings, I’ll fix that next release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found