It didn't work when I updated vitest to a latest version. This is the output of the console:
DEV v0.32.2 d:/my-project
API started at http://127.0.0.1:65401
filter: /my-project/tests/auth.test.ts
include: **/*.test.ts
exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*
watch exclude: **/node_modules/**, **/dist/**
No test files found, exiting with code 1
It didn't work when I updated vitest to a latest version. This is the output of the console:
But if you use
npx vitest run
it works fine