chore: ignore unstable coverage

This commit is contained in:
alexander.akait 2023-04-30 23:06:02 +03:00
parent b38a6b558b
commit 2f066d9ff1
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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;