You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a test file like src/__test__/report.test.ts and rename it to src/__test__/report/report.test.ts while in watch mode vitest crashes with an error similar to this. It's not always the exact same error either.
The same goes for if I delete the test file while it's running.
I can have a look at this (though only in a few days).
What would be the expected behaviour in such a case? My first approach would be simply re-collecting the tests.
I had a look at the issue and it seems to be fixable by adding onTestRemoved to the bi-rpc client and then updating the UI's state accordingly. Since I haven't touched Vitest's new state management yet I'd leave it to someone who has insight.
Describe the bug
If I have a test file like
src/__test__/report.test.ts
and rename it tosrc/__test__/report/report.test.ts
while in watch modevitest
crashes with an error similar to this. It's not always the exact same error either.The same goes for if I delete the test file while it's running.
Reproduction
and wait for the ui, etc. to load
basic.test.ts
out of the test directory and then back inSystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: