envalid
erroring out when continuous run is enabled and on first re-run
#406
Labels
envalid
erroring out when continuous run is enabled and on first re-run
#406
Describe the bug
When running Vitest in continuous watch mode using the VS Code Vitest extension, the process unexpectedly exits with an error related to envalid. This issue does not occur when running Vitest directly via the command line (vitest dev). The error indicates that process.exit is called unexpectedly due to missing environment variables, even though they are correctly loaded using dotenv.config() in a setup file.
Reproduction
npm install
in the directoryFOO
environment variable to theenvConfig.ts
file:src/api/user/__tests__/userRouter.test.ts
and save itOutput
Version
0.10.7
Validations
The text was updated successfully, but these errors were encountered: