Skip to content

"Test Results" panel aggressively steals focus  #1111

@andrewheumann

Description

@andrewheumann

Environment

  1. vscode-jest version: 6.2.0
  2. node -v: v20.9.0
  3. npm -v or yarn --version: v10.1.0
  4. npm ls jest or npm ls react-scripts (if you haven’t ejected):
[email protected] /Users/andrewheumann/Dev/pringle
├─┬ @vue/[email protected]
│ └── [email protected] deduped
├── [email protected]
└─┬ [email protected]
  └── [email protected] deduped
  1. your vscode-jest settings if customized:
    • jest.jestCommandLine? n/a
    • jest.autoRun? n/a
    • anything else that you think might be relevant? n/a
  2. Operating system: Mac OS 14.2.1 (23C71)

Prerequisite

  • are you able to run jest test from the command line? yes
  • how do you run your tests from the command line? (for example: npm run test or node_modules/.bin/jest) npm run test

Steps to Reproduce

Example Repo https://github.com/andrewheumann/jest-steals-focus

In this bare repository, on every file save, "Test Results" steals focus in the VS code panel. I want my terminal to stay front and center.

Screen.Recording.2024-02-12.at.3.43.16.PM.mp4

In another repo, it's stealing focus on every git action.

Even if I explicitly close the Test Results panel tab, it re-opens itself on every file save or git action.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions