From 2f066d9ff1cfd83bc9ca4ef7dfd6ed9fe3e317e3 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Sun, 30 Apr 2023 23:06:02 +0300 Subject: [PATCH] chore: ignore unstable coverage --- lib/Compilation.js | 2 ++ lib/cache/MemoryWithGcCachePlugin.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/Compilation.js b/lib/Compilation.js index aef0adc43..84d515326 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -2578,6 +2578,8 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si p.calculate(); const logger = this.getLogger("webpack.Compilation.ModuleProfile"); + // Avoid coverage problems due indirect changes + /* istanbul ignore next */ const logByValue = (value, msg) => { if (value > 1000) { logger.error(msg); diff --git a/lib/cache/MemoryWithGcCachePlugin.js b/lib/cache/MemoryWithGcCachePlugin.js index 7d652f566..d441f07fc 100644 --- a/lib/cache/MemoryWithGcCachePlugin.js +++ b/lib/cache/MemoryWithGcCachePlugin.js @@ -34,6 +34,8 @@ class MemoryWithGcCachePlugin { generation++; let clearedEntries = 0; let lastClearedIdentifier; + // Avoid coverage problems due indirect changes + /* istanbul ignore next */ for (const [identifier, entry] of oldCache) { if (entry.until > generation) break;