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

No Tests Found on Windows 10 using VSCode 1.82.2 - Backslashes in file name #333

Closed ScottSEA closed 11 months ago

ScottSEA commented 11 months ago

This stackoverflow post goes into greater detail, but the gist of it is when clicking the "run test" button on a file or test, the testPathPattern path has unwanted backslashes in the file name, e.g.

"--testPathPattern" "c:\\\\git\\\\appName\\\\src\\\\test\\\\util\\\\someFile\\.test\\.ts"

instead of

"--testPathPattern" "c:\\\\git\\\\appName\\\\src\\\\test\\\\util\\\\someFile.test.ts"

Windows Version: Win10 Pro v22H2 VSCode Version: 1.82.2 Jest Extension Version: v5.2.3

domsleee commented 11 months ago

Hello, based on the version number, I think you are using a different extension (Orta.vscode-jest).

I would suggest raising an issue with vscode-jest

domsleee commented 11 months ago

Oh, I see you already did https://github.com/jest-community/vscode-jest/issues/1070 😄

I will close this one 👍