-
-
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 crashes on systems without find #9329
Comments
🎤Anyone out there? |
PR welcome! Right now we skip the Doing |
Hey @SimenB can I take this issue? |
For sure, go for it! 🙂 |
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
Jest crashes on systems without find. It would be automatically detected if the utility was available and handled this gracefully.
An alternative would be to allow
forceNodeFilesystemAPI
parameter to be passed fromhttps://github.com/facebook/jest/blob/9ac2dcd55c0204960285498c590c1aa7860e6aa8/packages/jest-core/src/cli/index.ts#L123
to
https://github.com/facebook/jest/blob/89c151b69f81baba49caeceec19f07b4bc2680cc/packages/jest-runtime/src/index.ts#L242
which would force it to not use the find utility.
To Reproduce
Steps to reproduce the behavior:
Docker image for lambda like runtime environment
Expected behavior
Jest works without find utility.
Link to repl or repo (highly encouraged)
From node, try to run tests using
jest-cli
packageStacktrace
Jest crashes with uncaught exception trying to invoke find utility
https://github.com/facebook/jest/blob/ee2bea16a9f401581a884d9faa0951b552a86fe4/packages/jest-haste-map/src/crawlers/node.ts#L102
The text was updated successfully, but these errors were encountered: