Skip to content

Commit 8c7f75a

Browse files
authored
fix: ignore failures on writeToCache (#7893)
1 parent d613b81 commit 8c7f75a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vitest/src/node/core.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,10 @@ export class Vitest {
760760
}
761761

762762
this.cache.results.updateResults(files)
763-
await this.cache.results.writeToCache()
763+
try {
764+
await this.cache.results.writeToCache()
765+
}
766+
catch {}
764767

765768
return {
766769
testModules: this.state.getTestModules(),

0 commit comments

Comments
 (0)