Skip to content
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

Unable to detect correct config when it is jest.config.json #328

Closed
zsstiers opened this issue Aug 23, 2023 · 1 comment · Fixed by #346
Closed

Unable to detect correct config when it is jest.config.json #328

zsstiers opened this issue Aug 23, 2023 · 1 comment · Fixed by #346
Labels

Comments

@zsstiers
Copy link
Contributor

It looks like the issue is probably just not having the .json extension listed on

for (const configFilename of ['jest.config.js', 'jest.config.ts', 'jest.config.cjs', 'jest.config.mjs']) {

@domsleee
Copy link
Collaborator

Thanks for the report 👍

Agree, it looks like this case this missing

https://jestjs.io/docs/configuration

The file will be discovered automatically, if it is named jest.config.js|ts|mjs|cjs|json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants