-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 fails with EBADF: bad file descriptor, close #7709
Comments
What version of jest and what version of node? |
PS C:\Users\Henning\Workspace\reactmain> yarn run jest --version
yarn run v1.10.1
$ C:\Users\Henning\Workspace\reactmain\node_modules\.bin\jest --version
24.0.0
Done in 0.34s. PS C:\Users\Henning\Workspace\reactmain> node --version
v10.11.0 |
@rubennorte does RN support another jest than the bundled version? |
I'm also seeing this error after upgrading. Was previously using [email protected] successfully. Post upgrade getting this cache error randomly. |
With RN or plain Jest? |
Plain jest. abbreviated jest.config.js
|
Related to #4444 (last few comments there), seems like something in the upgrade from Can you try to either manually edit |
Occurring with me too. Fails when >100 tests are run in a single run. |
I've opened up #7725. |
I have
checked both in |
btw, there's no string match for |
It's part of But if you're on Jest 23 (and on |
I see, well |
It's not the same as we're seeing on our own CI, or the user above here
In your case, I'd follow #4444 |
Same problem once upgrading to jest 24, windows 10. I've downgraded write-file-atomic to 2.4.1 with manual copying of an old version and it stopped having errors. re installing and the error comes back. i cleared my cache before each test. |
turn on runInBand before jestjs/jest#7709 gets solved
@SimenB Any info when a new version with this fix will be released? |
hopefully today |
I encountered this problem today on our large scale project. We use locked 23.6.0 jest version. Could the fix be also applied to 23.x versions? |
No, not unless absolutely necessary. And we have don't really have a fix. The "fix" is to rollback |
We encountered this issue today as well. Did you manage to fix this yesterday? |
this was happening with jest 23.6 for my team as well. I went ahead and added |
Thank you, this was helpful 😄! |
I can confirm 23.6.0 is affected too and was fixed by using and
in package.json |
Feels a bit dirty using resolutions.. do we know when a 24.0.1 or 24.1 will be out? |
24.1.0 is out: 8a2ea1e |
i get
|
That's an issue either with your network or a proxy/registry of some kind. It's definitely available: |
Yep. Definitely there. I’ll make use of this tomorrow. Thank you |
You linked to this very issue |
The write-file-atomic resolution strategy does not appear to work with yarn workspaces 👎 |
Resolutions doesn't matter here, jest has locked down the dependency. If you've got issues, please open up a new issue with reproduction steps |
That's great, just letting the next google-fu-master that finds this thread to avoid trying the workaround if they might be using yarn workspaces. |
22.4 also has this issue |
Any chance this fix to be merged to 23? |
@tscislo not likely, we don't maintain past versions, only the current one. There would be too much maintenance burden and we just don't have enough people do deal with it. What's holding you back from upgrading to v24? |
@thymikee well we need to migrate sooner or later, but having a fix for 23 would allow us to keep it for some time now. |
Well, it isn't as easy as you'd think. We need a FB employee to release a version, which may be hard to arrange at times. Feel free to ping @scotthovestadt and maybe he'll do something about it :). |
Oh, and btw, if you use Yarn, feel free to use the |
In case it helps anyone - I had forgotten to |
We have a project using Yarn workspaces, with 5 TypeScript packages. Jest and ts-jest installed at the root.
to our package.json got around the issue.
|
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. |
🐛 Bug Report
Jests fails multiple times with:
To Reproduce
Run
react-native init
, copy the fileApp.js
in__Tests__
several times (more than 10 times).Run
yarn test
.Expected behavior
All tests pass.
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: