You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this is `example.test.js`process.on('SIGINT',()=>console.log('SIGINT was called!'));test("demo",async()=>{console.log('running test');awaitnewPromise(()=>{});});
Run test: npx jest@v26.0.1
Once running test is printed, hit Ctrl-C.
Expected behavior
Expected to see SIGINT was called! in the console
Link to repl or repo (highly encouraged)
Here's the repo with a similar repro. Due to this bug, Playwright doesn't handle SIGINT and doesn't close browser:
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
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.
💥 Regression Report
v26.0.1
SIGINT handler is not called in jest scripts.
I'm coming here originally from microsoft/playwright#2261 (and we had some previous history with this at puppeteer/puppeteer#2428)
Last working version
Definitely works for me in
v20.0.0
To Reproduce
example.test.js
:Run test:
npx jest@v26.0.1
Once
running test
is printed, hitCtrl-C
.Expected behavior
Expected to see
SIGINT was called!
in the consoleLink to repl or repo (highly encouraged)
Here's the repo with a similar repro. Due to this bug, Playwright doesn't handle SIGINT and doesn't close browser:
https://github.com/jperl/pw-close-repro
Run
npx envinfo --preset jest
System:
OS: macOS 10.15.4
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Binaries:
Node: 14.2.0 - ~/.nvm/versions/node/v14.2.0/bin/node
npm: 6.14.4 - ~/.nvm/versions/node/v14.2.0/bin/npm
npmPackages:
jest: ^26.0.0 => 26.0.1
The text was updated successfully, but these errors were encountered: