š Bug Report
Jest does not exit any longer after the tests are done on MacOS.
I tracked it down to the Update of fsevents@2.2.0. Not sure if it might be better to open an issue there, or if you can fix it on your end. (Edit: I created fsevents/fsevents#345)
As a workaround, I added the following to my package.json (through yarn):
"resolutions": {
"**/jest-haste-map/fsevents": "2.1.3"
}
(Edit: Note that this workaround will fail installing on Windows and Linux. If you have a lock file (yarn.lock or package-lock.json), you should be able to set the version of fsevents to 2.1.3 there, see #10777 (comment) below)
To Reproduce
Steps to reproduce the behavior:
Just run jest - I could reproduce it in a minimal repository with just Jest and a single test file.
package.json
{
"name": "foo",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "jest"
},
"dependencies": {
"jest": "^26.6.2"
}
}
foo.test.js
describe('test', () => {
it('test', () => {
expect(true).toBe(true)
})
})
Expected behavior
Jest should exit after the tests are done.
envinfo
System:
OS: macOS 10.15.7
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Binaries:
Node: 12.16.3 - ~/.nvm/versions/node/v12.16.3/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - ~/.nvm/versions/node/v12.16.3/bin/npm
npmPackages:
jest: ^26.6.2 => 26.6.2
I also reproduced this on Node 14.1.0 and 15.0.1
š Bug Report
Jest does not exit any longer after the tests are done on MacOS.
I tracked it down to the Update of
fsevents@2.2.0. Not sure if it might be better to open an issue there, or if you can fix it on your end. (Edit: I created fsevents/fsevents#345)As a workaround, I added the following to my
package.json(throughyarn):(Edit: Note that this workaround will fail installing on Windows and Linux. If you have a lock file (
yarn.lockorpackage-lock.json), you should be able to set the version offseventsto2.1.3there, see #10777 (comment) below)To Reproduce
Steps to reproduce the behavior:
Just run
jest- I could reproduce it in a minimal repository with just Jest and a single test file.package.json
foo.test.js
Expected behavior
Jest should exit after the tests are done.
envinfo
I also reproduced this on Node 14.1.0 and 15.0.1