Setting VITEST_MAX_FORKS
with sharding results in Unhandled Error
#7826
Labels
VITEST_MAX_FORKS
with sharding results in Unhandled Error
#7826
Describe the bug
When running Vitest in shard mode and a custom
VITEST_MAX_FORKS
env variable, the test run(s) fail with an unhandled error.Reproduction
Once again following the Sharind recipe from the docs.
The behavior is the same for when using
VITEST_MAX_THREADS
.What makes this issue particularly tricky is that the unhandled exception reported is not useful. I presume Vitest itself doesn't have more context, but the empty
stack: []
array makes it harder to debug.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: