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

Support `jest.config.ts` #195

Closed wh1t3cAt1k closed 3 years ago

wh1t3cAt1k commented 3 years ago

Jest has supported Typescript configuration files for a while now. https://github.com/facebook/jest/pull/10564

In my monorepo environment, I benefitted from this runner being able to auto-find the "nearest" jest.config.js file.

However, this logic broke when my configuration file became jest.config.ts.

I cannot use a single configuration file in the extension options because each package in my monorepo has its own config.

Could we adapt this logic to accommodate jest.config.ts, too?

image