From 8c7f75a6deaa91ce80a42601eadab936194af6ea Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 5 May 2025 16:19:25 +0300 Subject: [PATCH] fix: ignore failures on writeToCache (#7893) --- packages/vitest/src/node/core.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(), -- 2.51.2