Describe the bug
The Jest extension test output being written to the TEST RESULTS console causes VS Code to steal window focus.
To Reproduce
Steps to reproduce the behavior:
Open a workspace/project with jest tests
Switch to another window
Expected behavior
The tests should run in the background without stealing window focus back to VS Code
Actual behavior
Every time console output is written to the TEST RESULTS console, the host VS Code window steals focus making doing anything else impossible.
I have had to disable the jest runners to prevent auto running of tests on change because it's so disruptive.
Environment (please complete the following information):
vscode-jest version: v6.2.1
node -v: v20.10.0
yarn --version: v1.22.19
jest: v29.7.0
your vscode-jest settings: default, no settings in settings.json
are you able to run jest from the command line? yes
where do you run jest CLI from? project root
how do you run your tests from the command line? yarn test
Additional context
I'm not sure if this is necessarily a Jest extension issue of a core VS Code issue as the problem was introduced after a recent VS Code update, so I also filed an issue there.
Describe the bug The Jest extension test output being written to the TEST RESULTS console causes VS Code to steal window focus.
To Reproduce Steps to reproduce the behavior:
Expected behavior The tests should run in the background without stealing window focus back to VS Code
Actual behavior Every time console output is written to the TEST RESULTS console, the host VS Code window steals focus making doing anything else impossible.
I have had to disable the jest runners to prevent auto running of tests on change because it's so disruptive.
Environment (please complete the following information):
node -v
: v20.10.0yarn --version
: v1.22.19VS Code info: Version: 1.86.2 Commit: https://github.com/microsoft/vscode/commit/903b1e9d8990623e3d7da1df3d33db3e42d80eda Date: 2024-02-13T19:41:37.860Z Electron: 27.2.3 ElectronBuildId: 26908389 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Linux x64 6.6.10-76060610-generic
Prerequisite
Additional context I'm not sure if this is necessarily a Jest extension issue of a core VS Code issue as the problem was introduced after a recent VS Code update, so I also filed an issue there.
https://github.com/microsoft/vscode/issues/205766