-
Notifications
You must be signed in to change notification settings - Fork 84
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.config.js
does not work if "type": "module"
is set in package.json
#311
Comments
The latest version allows you to override this path with the Line 4 in 5cbc7cc
However, this obviously doesn't work if you want to run individual tests from your IDE, unless you complement it with another workaround; e.g.: https://stackoverflow.com/questions/32760584/in-intellij-how-do-i-set-default-environment-variables-for-new-test-configurati I agree |
Might this issue be why my Please see jest's documentation for this preset. Thank you. UPDATE: Whoops, I had let |
Same issue, the workaround of setting the environment variable |
Same Issue. |
We are busy converting all our packages to ES Modules. The config in
jest.config.js
is not being read.The relevant function is:
The require statement errors, and then the default config is returned. The error message is:
Maybe getMongodbMemoryOptions could also check for a
jest.config.cjs
file? Or theimport()
function could be used, but then getMongodbMemoryOptions would need to be an async function.The text was updated successfully, but these errors were encountered: