Skip to content

[FEATURE] Add option to disable listTests command on opening project. #1267

@yunnysunny

Description

@yunnysunny

Is your feature request related to a problem? Please describe.
I have a vscode workspace with 20 projects in it. When I start the VSCode or Cursor, jest-vscode will trigger the list command to find test cases in project. It make the IDE stuck for seconds.

Image

It run with npm test -- --listTests --json --watchAll=false command, but our project's test command can only run on CI platform. So it will result with the message:

[error] failed to retrieve test file list. TestExplorer might show incomplete test items

But when I open the test files, all of them can show the green triangle button correctly.

Image

Describe the solution you'd like
It may be ok when listTests command not triggered after projects opening.

Describe alternatives you've considered
Can we supply a option to shutdown the list command when starting project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions