We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
include
When a file is added the test reruns on watch mode. But when include is relative like below, the rerun does not happen.
export default defineConfig({ test: { include: ['test/**.test.ts'], }, });
https://stackblitz.com/edit/vitest-dev-vitest-b4spnq?file=vite.config.ts
npm run test
foo.test.ts
test
The rerun happens if you change include to ['**/test/**.test.ts'].
['**/test/**.test.ts']
stackblitz vitest 0.7.4
npm
The text was updated successfully, but these errors were encountered:
dir
fix: inconsistency with globTestFiles and isTargetFile (fix #981, #982)…
64f302d
… (#1070)
feat(useScroll): directions (vitest-dev#981)
88db283
Successfully merging a pull request may close this issue.
Describe the bug
When a file is added the test reruns on watch mode.
But when
include
is relative like below, the rerun does not happen.Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-b4spnq?file=vite.config.ts
npm run test
.foo.test.ts
totest
directory.The rerun happens if you change
include
to['**/test/**.test.ts']
.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: