Closed unional closed 3 weeks ago
The problem is not that it doesn't kill the runner, because it does kill it. The problem is with the RPC - we don't stop it. Until recently, there was no way to do it, but with https://github.com/antfu/birpc/pull/21 we might be able to fix this. This would require an additional try/catch
in the pool though.
I have just hit something similar, where when running Vitest in watch mode and Browser Mode, I can re-run tests multiple times with no issue, but as soon as I attach a debugger and re-run the tests I get the above Timeout calling "createTesters"
error.
Is this a similar issue? Has something changed recently, as I have been successfully doing this with 2.1.2 for a while now, and suddenly it has stopped working. Updating to 2.1.4 makes no difference
Describe the bug
Running
vitest
worspace (in watch mode) with a project is using browser mode.When a root config is changed
vitest
detects the change and try to restart. But it doesn't first kill the previous browser runner, causing eventual failure:Reproduction
TBD, I have a repro but need to clean it up.
System Info
Used Package Manager
pnpm
Validations