jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.83k stars 291 forks source link

Search for "jest" in the Test Explorer matches every test #1150

Closed dinofx closed 4 months ago

dinofx commented 4 months ago

Describe the bug I work on a dev tool that other developers use to run the jest tests in their repos. Some of our tests have "jest" in the name. There seems to be no way to filter for these tests. My guess is that VSCode is matching "jest" against the test provider.

Substrings like "jes" or "est" also match every test.

To Reproduce Steps to reproduce the behavior:

  1. Have a bunch of tests, some of which have "jest" in their name.
  2. Search for "jest" in the test explorer view.

Expected behavior

Ideally any labels implicitly added to every test would be some kind of tag like @jest, and wouldn't match when searching for the string "jest"

Environment (please complete the following information):

connectdotz commented 4 months ago

This is interesting. However, the Test Explorer search function is managed by the VS Code team. Please open the issue directly with VS Code to get proper traction.