Open bmutafov opened 1 year ago
Is there any related error message in the console log?
Is there any related error message in the console log?
Nothing that I can see, no.
If you run individual tests from the editor gutter menu or test explorer tree item, does it also switch to file explorer? Do you have a sample repo we can try to repro this issue?
Yes, from both it focuses the file in the file explorer. As for a sample repo, I just tried setting up a brand new CRA app with typescript and it is present even there:
npx create-react-app my-app --template typescript
And then try to run App.test.tsx tests. The issue is present for me. VSCode version:
❯ code -v
1.75.1
441438abd1ac652551dbe4d408dfcec8a499b8bf
x64
Extension version v5.2.3
Environment
vscode-jest version
: v5.1.0node -v
: v12.22.7npm -v
oryarn --version
: npm 6.14.15npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): react-scripts@5.0.1npm test --
Prerequisite
npm run test
ornode_modules/.bin/jest
)npm run test
Steps to Reproduce
Test explorer
Run test
File explorer
Relevant Debug Info
VSCode Version:
Expected Behavior
Sidebar view stays on
Test explorer
Actual Behavior
The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...