Closed Tiberriver256 closed 3 months ago
@Tiberriver256
This issue is a bit puzzling... Since all test files have dot separators, this should normally work with this extension. It seems possible that something specific in your environment might be causing the regex escape pattern to be interpreted differently.
If you could provide a sample repo, it would help us investigate further. If that's not possible, could you please provide some additional information?
jest.jestCommandLine
?.vscode/launch.json
), could you share it with us?Thanks!
I didn't have any custom commands.. but ended up upgrading to jest 29 for something unrelated and that seems to have fixed it 🤷♂️
Describe the bug When I attempt to run a single test it generates an invalid pattern if the filename has any period in it.
For example, if I have a file located at
C:\my-project\src\mytest.test.tsx
The following pattern is generated:
C:\my-project\src\mytest\.test\.tsx
The following should be generated:
C:\my-project\src\mytest.test.tsx
**NOTE: Debugging a single test generates a valid
testPathPattern
it is only when I run a single test that I have this problem.To Reproduce Steps to reproduce the behavior:
Run Test
Expected behavior It should run the test
Screenshots
Environment (please complete the following information):
node -v
: 20.8.0npm -v
oryarn --version
: 10.1.0Prerequisite