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
264 stars 124 forks source link

Does not work with .cjs files #313

Closed mike247 closed 1 year ago

mike247 commented 1 year ago

Jest config files can have multiple filenames

jest.config.js|ts|mjs|cjs|json

Jest runner only seems to support .js or .ts as valid extensions (see https://github.com/firsttris/vscode-jest-runner/blob/master/src/jestRunnerConfig.ts#L111)

There is an open PR from last year to add .cjs to the config, can this please be merged?

https://github.com/firsttris/vscode-jest-runner/pull/281/files

domsleee commented 1 year ago

A related PR was merged: https://github.com/firsttris/vscode-jest-runner/pull/314

Notable that it is still missing jest.config.json, this issue might still be relevant

firsttris commented 1 year ago

should work now, if not re-open please.