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
fix: unable to execute a specific test using jest.virtualFolders
#1050
Comments
The A few questions might help us narrow it down:
|
@kevinpastor I took another look at your issue, and there seems to have 2 issues:
|
Also, when enabling virtual folders right now I am losing all my test output color, and it's not properly listing test in the sidebar. Is the virtualFolder feature experimental / broken? |
Environment
vscode-jest version
: v6.0.0 pre-releasenode -v
: v18.16.0npm -v
oryarn --version
: [email protected]npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): 28.0.0pnpm run test
off
Prerequisite
npm run test
ornode_modules/.bin/jest
)pnpm run test
Relevant Debug Info
Notice the last parameter passed to
jest
. We would expect--test-path-pattern
to have a value off:\\\\repositories\\\\repository\\\\path\\\\to\\\\library\\\\__tests__
.Expected Behavior
When launching a specific test from the Testing sidebar while using
virtualFolders
, I would expect that the path used in for--test-path-pattern
to contain therootPath
of the virtual folder.A similar problem occurs when launching a specific test from the file it's defined. The
--test-path-pattern
is correct, but no tests can be found.Actual Behavior
The
--test-path-pattern
only points to the root of the opened project when starting a specific test from the Testing sidebar.Test should be found when starting a specific test from its implementation file.
I feel like the problem may be occuring because of the escaped characters (
\\\\
).The text was updated successfully, but these errors were encountered: