Skip to content

Commit

Permalink
Merge pull request #12575 from webpack/ci/timing-snapshot
Browse files Browse the repository at this point in the history
exclude ModuleProfile from snapshot as it's not deterministic
  • Loading branch information
sokra committed Feb 3, 2021
2 parents 9393124 + e88c148 commit fdae092
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/StatsTestCases.test.js
Expand Up @@ -184,6 +184,10 @@ describe("StatsTestCases", () => {
actual = actual
.replace(/\r\n?/g, "\n")
.replace(/webpack [^ )]+(\)?) compiled/g, "webpack x.x.x$1 compiled")
.replace(
/LOG from webpack\.Compilation\.ModuleProfile\n([^\n]+\n)*\n/g,
""
)
.replace(new RegExp(quotemeta(testPath), "g"), "Xdir/" + testName)
.replace(/(\w)\\(\w)/g, "$1/$2")
.replace(/, additional resolving: X ms/g, "");
Expand Down

0 comments on commit fdae092

Please sign in to comment.