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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 27 (27 by maintainers)

Commits related to this issue

Most upvoted comments

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 resolves Promise.race so we call process.exit() but not everything was cleaned up.

We should call process.exit() only if Vitest locked up somewhere and needs to be killed.