Skip to content

Commit

Permalink
chore: ignore unstable coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 30, 2023
1 parent b38a6b5 commit 2f066d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions lib/cache/MemoryWithGcCachePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2f066d9

Please sign in to comment.