diff --git a/cypress/support/link-cache.js b/cypress/support/link-cache.js index e7df99d4e..1a54a6e41 100644 --- a/cypress/support/link-cache.js +++ b/cypress/support/link-cache.js @@ -98,8 +98,9 @@ export class LinkCacheManager { try { fs.unlinkSync(cacheFile); this.stats.cleanups++; - } catch { - // Ignore cleanup errors + } catch (cleanupError) { + // Ignoring cleanup errors as they are non-critical, but logging for visibility + console.warn(`Failed to clean up corrupted cache file: ${cleanupError.message}`); } this.stats.misses++; return null;