Skip to content

New files in vscode report "no tests found in this file" #617

@haukened

Description

@haukened

Describe the bug

After creating a new file in vscode and filling it with tests, running tests with vitest plugin results in message "no tests found in file"

Image

Reproduction

  1. Create a new test file foo.mapper.test.ts
  2. Write tests
  3. Select "Run tests with coverage in this file"
  4. Observe the sadness
  5. Reload the window using developer command
  6. re-run tests
  7. success.

Output

See screenshot

Extension Version

1.18.1

Vitest Version

vitest/3.1.3 linux-x64 node-v22.14.0

Validations

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