This is a short reproduction of vitest-dev/vitest#2330
To verify:
npm install
npm test
This will fail with "No test files found."
If you change the vitest version to 0.24.3 everything works as expected:
"devDependencies": {
- "vitest": "^0.25.2"
+ "vitest": "0.24.3"
}