vitest icon indicating copy to clipboard operation
vitest copied to clipboard

`include` option is not reloaded after restart on config change

Open sapphi-red opened this issue 2 years ago • 0 comments

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

  1. Run npm run test.
  2. See test/basic.test.ts and test/suite.test.ts are included and test/basic.test.js is not included.
  3. Change include in vite.config.ts to ['**/test/**/*.js'] from ['**/test/**/*.ts'].
  4. See test/basic.test.ts and test/suite.test.ts are included and test/basic.test.js is not included.
    • the expected behavior here is "test/basic.test.ts and test/suite.test.ts are not included and test/basic.test.js is included"

System Info

stackblitz

vitest 0.7.4

Used Package Manager

npm

Validations

sapphi-red avatar Mar 19 '22 04:03 sapphi-red