Open nbolton opened 11 months ago
hmm... this might be a bug... can you try to run the generated command directly in the terminal? Does it give you the same error? If it does, can you try to add one more backslash for the "testPathPattern": --testPathPattern c:\\project\\\\.github
and see if that works.
Environment
vscode-jest version
: v5.2.3node -v
: v18.17.0 (direct install for testing; didn't use fnm/nvm)npm -v
oryarn --version
: npm 9.6.7npm ls jest
ornpm ls react-scripts
:Prerequisite
jest
Steps to Reproduce
.github/actions
dir with unit tests.github
tests pass.github
tests failExpected Behavior
The workaround is to copy and paste the exact generated command from the Jest extension output directly to the terminal, which produces:
Actual Behavior
The command line generated is:
jest --testLocationInResults --json --useStderr --outputFile C:\Users\username\AppData\Local\Temp\jest_runner_project_username_2.json --coverage --reporters default --reporters c:\Users\username\.vscode\extensions\orta.vscode-jest-5.2.3\out\reporter.js --colors --watchAll=false --testPathPattern c:\\project\\\.github
Note: Values edited (e.g.
project
andusername
) for privacy.Which produces:
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...