-
Notifications
You must be signed in to change notification settings - Fork 310
Description
Environment
-
vscode-jest version: 4.2.1 -
node -v: v16.13.1 -
npm --version: 8.1.2 -
npm ls jestornpm ls react-scripts(if you haven’t ejected): [email protected] -
your vscode-jest settings if customized:
- jest.jestCommandLine? npm test --
- jest.autoRun? off
-
Operating system: Windows 11
Prerequisite
- are you able to run jest test from the command line? yes
- how do you run your tests from the command line? (for example:
npm run testornode_modules/.bin/jest) npm test --watchAll=false
Steps to Reproduce
- create-react-app project
- run the "renders learn react link"
Expected Behavior
the tests should run normally
Actual Behavior
[email protected] test
react-scripts test "--testLocationInResults" "--json" "--useStderr" "--outputFile" "C:\Users\smars\AppData\Local\Temp\jest_runner_my_app.json" "--testNamePattern" "renders learn react link" "--no-coverage" "--reporters" "default" "--reporters" "c:\Users\smars\.vscode\extensions\orta.vscode-jest-4.2.1\out\reporter.js" "--colors" "--watchAll=false" "--testPathPattern" "d:\\repos\\my-app\\src\\App\.test\.tsx"
No tests found, exiting with code 1
Run with --passWithNoTests to exit with code 0
In D:\repos\my-app
6 files checked.
testMatch: D:/repos/my-app/src//tests//.{js,jsx,ts,tsx}, D:/repos/my-app/src/**/.{spec,test}.{js,jsx,ts,tsx} - 1 match
testPathIgnorePatterns: \node_modules\ - 6 matches
testRegex: - 0 matches
Pattern: d:\\repos\\my-app\\src\\App\.test\.tsx - 0 matches
for some reason the testPathPattern is messed up. it works fine when i use yarn as the command