Should vi.setConfig({ sequence: { shuffle: false } })
be in RuntimeConfig
TypeScript type?
#7199
Open
6 tasks done
Labels
Describe the bug
When setting
sequence.shuffle
via thecli
orvitest.config.ts
. Should you be able to override this in a test file viaThe above does indeed overrides the
cli
orvitest.config.ts
. But the TypeScript types forRuntimeConfig
does not allow this. There is a TypeScript error ofI see in v3 of Vitest there will be feat(runner)!: support describe(..., { shuffle: boolean }) and inherit from parent suite
Should v3 TypeScript types for
RuntimeConfig
supportshuffle
as well?Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-pddkmr9r?file=test%2Fbasic.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: