vitest: Crashes under Windows
Describe the bug
Adding this here so we don’t forget to fix it
Reproduction
https://github.com/vitest-dev/vitest/runs/4868391749?check_suite_focus=true
System Info
Windows
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (27 by maintainers)
All five attempts are passing https://github.com/vitest-dev/vitest/actions/runs/1718747096
Too soon
@Demivan @sheremet-va the changes on #588 works on my windows machine, no error reported
Problem right now is that
this.close
promise resolves, and that resolvesPromise.race
so we callprocess.exit()
but not everything was cleaned up.We should call
process.exit()
only if Vitest locked up somewhere and needs to be killed.