diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index e9d4aeb02..515e4e690 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -760,7 +760,10 @@ export class Vitest { } this.cache.results.updateResults(files) - await this.cache.results.writeToCache() + try { + await this.cache.results.writeToCache() + } + catch {} return { testModules: this.state.getTestModules(),