You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system: Windows (works fine on macOS and Linux)
Prerequisite
are you able to run jest test from the command line? Yes, by copying and pasting the same generated command.
how do you run your tests from the command line? Works by simply running jest
Steps to Reproduce
Have a .github/actions dir with unit tests
Use the extension on macOS and Linux
See that the .github tests pass
Use the extension on Windows
See that the .github tests fail
Expected Behavior
The workaround is to copy and paste the exact generated command from the Jest extension output directly to the terminal, which produces:
Test Suites: 2 passed, 2 total
Tests: 14 passed, 14 total
Snapshots: 0 total
Time: 2.658 s, estimated 6 s
Ran all test suites matching /c:\\project\\\.github/i
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 and username) for privacy.
Which produces:
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In C:\project
453 files checked across 8 projects. Run with `--verbose` for more details.
Pattern: c:\project\\.github - 0 matches
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...
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: