firsttris / vscode-jest-runner

Simple way to run or debug one or more tests from context menu, codelens or command plalette
https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
MIT License
265 stars 124 forks source link

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

Closed zsstiers closed 8 months ago

zsstiers commented 1 year ago

It looks like the issue is probably just not having the .json extension listed on https://github.com/firsttris/vscode-jest-runner/blob/e3f7c76334c248ff426fd078a7634213b4106174/src/jestRunnerConfig.ts#L114

domsleee commented 1 year ago

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