Skip to content

"No test suite found in file" Once again #3296

@xania

Description

@xania

Describe the bug

I've seen the error "No test suite found in file" many times over the course of months and it is reported at least twice before without clear resolution or at least a resolution that is helpful for my case:

sometimes, the error it disappears, just today I though I understood how to solve it but it appeared again. I am not sure why this happens. I was able to lock it down though to always fail with the code provided in the reproduction info block.

Reproduction

minimal reproduction code:
https://github.com/xania/view/tree/vitest-no-test-suite-found

pnpm install

image

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900HK
    Memory: 17.43 GB / 31.68 GB
  Binaries:
    Node: 19.3.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.6.0 - ~\AppData\Roaming\npm\npm.CMD
  Browsers:
    Chrome: 107.0.5304.122
    Edge: Spartan (44.22621.1555.0), Chromium (112.0.1722.68)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vite: ^4.3.4 => 4.3.4
    vitest: ^0.31.0 => 0.31.0

Used Package Manager

pnpm

Validations

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