vitest
vitest copied to clipboard
`include` option is not reloaded after restart on config change
Describe the bug
When config file is changed, vitest restarts.
But include
option is not reloaded.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-yrxx9p?file=vite.config.ts&initialPath=vitest
- Run
npm run test
. - See
test/basic.test.ts
andtest/suite.test.ts
are included andtest/basic.test.js
is not included. - Change
include
invite.config.ts
to['**/test/**/*.js']
from['**/test/**/*.ts']
. - See
test/basic.test.ts
andtest/suite.test.ts
are included andtest/basic.test.js
is not included.- the expected behavior here is "
test/basic.test.ts
andtest/suite.test.ts
are not included andtest/basic.test.js
is included"
- the expected behavior here is "
System Info
stackblitz
vitest 0.7.4
Used Package Manager
npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.