Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): Modules - regenerate test snapshots #4651

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/utils/src/report/__tests__/__snapshots__/create.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "module-a",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -203,6 +204,7 @@ exports[`report / createReport multiple sources 1`] = `
],
"displayValue": "1000B",
"name": "module-a",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -224,6 +226,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "+33.33%",
"displayValue": "1.95KiB",
"name": "module-b",
"originalValue": 2000,
"regression": true,
"value": 2000,
},
Expand All @@ -233,6 +236,7 @@ exports[`report / createReport multiple sources 1`] = `
],
"displayValue": "1.46KiB",
"name": "module-b",
"originalValue": 1500,
"value": 1500,
},
],
Expand All @@ -254,6 +258,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "node_modules/package-a/index.js",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -262,6 +267,7 @@ exports[`report / createReport multiple sources 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-a/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -283,6 +289,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "+100%",
"displayValue": "1000B",
"name": "node_modules/package-a/node_modules/package-c/index.js",
"originalValue": 1000,
"regression": true,
"value": 1000,
},
Expand All @@ -309,6 +316,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "node_modules/package-b/index.js",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -317,6 +325,7 @@ exports[`report / createReport multiple sources 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-b/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -338,6 +347,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "node_modules/package-c/index.js",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -346,6 +356,7 @@ exports[`report / createReport multiple sources 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-c/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -367,6 +378,7 @@ exports[`report / createReport multiple sources 1`] = `
"displayDeltaPercentage": "+100%",
"displayValue": "1000B",
"name": "node_modules/package-d/index.js",
"originalValue": 1000,
"regression": true,
"value": 1000,
},
Expand Down Expand Up @@ -1175,6 +1187,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1000B",
"name": "module-a",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -1191,6 +1204,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1.95KiB",
"name": "module-b",
"originalValue": 2000,
"value": 2000,
},
],
Expand All @@ -1207,6 +1221,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-a/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -1223,6 +1238,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-a/node_modules/package-c/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -1239,6 +1255,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-b/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -1255,6 +1272,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-c/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -1271,6 +1289,7 @@ exports[`report / createReport single source 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-d/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand Down
12 changes: 12 additions & 0 deletions packages/utils/src/webpack/__tests__/__snapshots__/compare.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "module-a",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -27,6 +28,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
],
"displayValue": "1000B",
"name": "module-a",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -48,6 +50,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "+33.33%",
"displayValue": "1.95KiB",
"name": "module-b",
"originalValue": 2000,
"regression": true,
"value": 2000,
},
Expand All @@ -57,6 +60,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
],
"displayValue": "1.46KiB",
"name": "module-b",
"originalValue": 1500,
"value": 1500,
},
],
Expand All @@ -78,6 +82,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "node_modules/package-a/index.js",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -86,6 +91,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-a/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -107,6 +113,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "+100%",
"displayValue": "1000B",
"name": "node_modules/package-a/node_modules/package-c/index.js",
"originalValue": 1000,
"regression": true,
"value": 1000,
},
Expand All @@ -133,6 +140,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "node_modules/package-b/index.js",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -141,6 +149,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-b/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -162,6 +171,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "0%",
"displayValue": "1000B",
"name": "node_modules/package-c/index.js",
"originalValue": 1000,
"value": 1000,
},
{
Expand All @@ -170,6 +180,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
],
"displayValue": "1000B",
"name": "node_modules/package-c/index.js",
"originalValue": 1000,
"value": 1000,
},
],
Expand All @@ -191,6 +202,7 @@ exports[`Webpack/compare should compare all modules 1`] = `
"displayDeltaPercentage": "+100%",
"displayValue": "1000B",
"name": "node_modules/package-d/index.js",
"originalValue": 1000,
"regression": true,
"value": 1000,
},
Expand Down