From ffb83b8f16773f942cb416db9ecc3e99c932676a Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 25 Feb 2020 16:17:03 +0300 Subject: [PATCH] chore(deps): update `jest` --- package.json | 6 +++--- test/Defaults.unittest.js | 6 +++--- test/__snapshots__/StatsTestCases.test.js.snap | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 1579cdf94..90f8a532a 100644 --- a/package.json +++ b/package.json @@ -52,9 +52,9 @@ "glob": "^7.1.3", "husky": "^3.0.2", "istanbul": "^0.4.5", - "jest": "^24.9.0", - "jest-diff": "^24.9.0", - "jest-junit": "^8.0.0", + "jest": "^25.1.0", + "jest-diff": "^25.1.0", + "jest-junit": "^10.0.0", "json-loader": "^0.5.7", "json-schema-to-typescript": "^7.0.0", "json5": "^2.1.1", diff --git a/test/Defaults.unittest.js b/test/Defaults.unittest.js index 22c790df3..d0e97c0b1 100644 --- a/test/Defaults.unittest.js +++ b/test/Defaults.unittest.js @@ -1,4 +1,4 @@ -const jestDiff = require("jest-diff"); +const jestDiff = require("jest-diff").default; const stripAnsi = require("strip-ansi"); const { applyWebpackOptionsDefaults, @@ -175,7 +175,7 @@ describe("Defaults", () => { "idHint": "vendors", "priority": -10, "reuseExistingChunk": true, - "test": /\\[\\\\\\\\/\\]node_modules\\[\\\\\\\\/\\]/i, + "test": /\\[\\\\\\\\\\\\/\\]node_modules\\[\\\\\\\\\\\\/\\]/i, }, }, "chunks": "async", @@ -805,7 +805,7 @@ describe("Defaults", () => { - "idHint": "vendors", - "priority": -10, - "reuseExistingChunk": true, - - "test": /[\\\\/]node_modules[\\\\/]/i, + - "test": /[\\\\\\/]node_modules[\\\\\\/]/i, - }, - }, - "chunks": "async", diff --git a/test/__snapshots__/StatsTestCases.test.js.snap b/test/__snapshots__/StatsTestCases.test.js.snap index 2f6cb3d60..eedd308f6 100644 --- a/test/__snapshots__/StatsTestCases.test.js.snap +++ b/test/__snapshots__/StatsTestCases.test.js.snap @@ -1384,9 +1384,9 @@ Entrypoint main = main.js DEBUG LOG from ./node_modules/custom-loader/index.js ./node_modules/custom-loader/index.js!./index.js An error -| at Object..module.exports (Xdir/logging/node_modules/custom-loader/index.js:5:9) +| at Object.module.exports (Xdir/logging/node_modules/custom-loader/index.js:5:9) A warning -| at Object..module.exports (Xdir/logging/node_modules/custom-loader/index.js:6:9) +| at Object.module.exports (Xdir/logging/node_modules/custom-loader/index.js:6:9) <-> Unimportant Info message Just log @@ -1395,7 +1395,7 @@ Entrypoint main = main.js <-> Nested Log inside collapsed group Trace - | at Object..module.exports (Xdir/logging/node_modules/custom-loader/index.js:15:9) + | at Object.module.exports (Xdir/logging/node_modules/custom-loader/index.js:15:9) Measure: Xms ------- After clear