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

Exclude extension from certain subdirectories in monorepo #367

Open jamie-phlo opened 2 months ago

jamie-phlo commented 2 months ago

I'm working in a monorepo that uses both jest and vitest. When opening a test file in the vitest project we still see the jest runner Run | Debug options but these don't work and cause confusion.

This seems similar to discussions in this issue: https://github.com/firsttris/vscode-jest-runner/issues/334

Would it be possible to have a config option for excluding paths, e.g.

"jestrunner.excludeDirectories": ["packages/package1"]      
jamie-phlo commented 2 months ago

Perhaps this is possible using the codeLensSelector but I'm unsure if it's possible to exclude directories using the syntax.