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

chore: support jest.config.cjs #281

Closed zofiag closed 1 year ago

zofiag commented 1 year ago

As stated in the Jest Docs

It is recommended to define the configuration in a dedicated JavaScript, TypeScript or JSON file. The file will be discovered automatically, if it is named jest.config.js|ts|mjs|cjs|json

This PR adds only .cjs extension as I didn't want to deal with the possible complexity that comes with other file extensions.

Parker-Ledoux commented 1 year ago

This would be an awesome addition if possible @firsttris 😄

mike247 commented 1 year ago

Can this get merged?

firsttris commented 1 year ago

thanks for you contribution, there was another PR which add even more file extensions. its now supported.

domsleee commented 1 year ago

Related PR is https://github.com/firsttris/vscode-jest-runner/pull/314 I think 👍