-
-
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
setupFiles can't be found when using browser-resolve Jest resolver #10547
Comments
Any update on this? I'm having the same bug. |
Jest 26.6.3 with Node.js v15.10.0 on Ubuntu 20.10 |
Without the Module /home/piranna/github/randomUUID/node_modules/jest-jasmine2/build/index.js in the testRunner option was not found.
<rootDir> is: /home/piranna/github/randomUUID Seems like the |
Any update on this? How can we move it forward? |
The example was wrong, sorry. I updated it in #11140. See updated docs: https://jestjs.io/docs/configuration#resolver-string |
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
I just upgraded all of our testing libraries to their latest version, including Jest.
Our test suite was dependant on the Jest configuration browser field which had been deprecated now.
I followed the instructions on how to reproduce the behaviour of that browser configuration field and added the following to my Jest configuration file:
Since then, when I run our test suite, it directly fails because Jest can't find a local setupFile defined as follow:
It fails with the following error:
While the displayed path is actually correct and points to my setup script.
To Reproduce
Here's my full Jest configuration file which should be enough to reproduce:
Expected behavior
Local setup files should be resolved properly.
envinfo
The text was updated successfully, but these errors were encountered: