Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ScottSEA opened this issue Sep 18, 2023 · 2 comments
Closed

Comments

@ScottSEA
Copy link

ScottSEA commented Sep 18, 2023

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
Copy link
Collaborator

domsleee commented Oct 1, 2023

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
Copy link
Collaborator

domsleee commented Oct 1, 2023

Oh, I see you already did jest-community/vscode-jest#1070 😄

I will close this one 👍

@domsleee domsleee closed this as completed Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants