Closed DScheglov closed 4 months ago
Oh, I've found the broken config in the projects ./.vscode/settings.json
:
"jest.outputConfig": {
"revealOn": "run",
"revealWithFocus": "test-results",
"clearOnRun": "none"
}
After removing this config the issue is resolved. But I didn't add this config manually.
Hi, @DScheglov, a few questions: what is the "testing.openTesting" in your settings.json? Did you update it either through the command or manually editing the settings.json?
Hi, @connectdotz
esting.openTesting
is absent in my settings.json
.
I didn't touch this setting nor manually, nor through the any command
ok, my guess is the jest.outputConfig
is saved probably via the command "Jest: Save Current Output Config"
.
It's great you figured out a solution with jest.autoRevealOutput
. However, please know it is a deprecated setting, the right customization is documented in here, and more background info can be found here.
In short, once you set "testing.openTesting": "neverOpen"
, you can remove the deprecated jest.autoRevealOutput
from your settings.json.
I will close this issue as it is a duplicate of #1113 and #1111.
Describe the bug When I save any file in VS Code, VS Code opens the "Test Results" tab instead of the keep Terminal
To Reproduce Steps to reproduce the behavior:
Expected behavior Keep Terminal (or other tab) open
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
node -v
: 20.7.0npm -v
oryarn --version
: 10.1.0~/.config/Code/User/settings.json
~/.config/Code/User/settings.json
~/.config/Code/User/settings.json
Prerequisite
npm test