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

#296 | @willwillman | debug currentPackagePath #329

Open WillWillman opened 1 year ago

WillWillman commented 1 year ago

Appears that the currentPackagePath and jestBinPath does not account for the possibility of certain mono-repos where sub packages share a node_modules directory in the root.

this PR allows the user to use a jestPathFromWorkspace setting to adjust where the runner looks for jest executable

domsleee commented 11 months ago

Salutations

What's an example structure this is trying to fix?

You were discussing changeDirectoryToWorkspaceRoot as true in #296, maybe it's an idea to change how the debug behaves when this is set to true, rather than introducing a new configuration? Hard to say without a reproduction 👍