diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index bc55de624f19..11a2f987dc74 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -746,7 +746,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(),