Skip to content

Commit db710c9

Browse files
committed
Simplify module-reasons test case
1 parent 9431651 commit db710c9

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

test/__snapshots__/StatsTestCases.test.js.snap

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,17 +1453,16 @@ If you don't want to include a polyfill, you can use an empty module like this:
14531453
`;
14541454

14551455
exports[`StatsTestCases should print correct stats for module-reasons 1`] = `
1456-
"Hash: 3584c47f06ef83e85f02
1456+
"Hash: 5423dc08099c1caec38c
14571457
Time: Xms
14581458
Built at: Thu Jan 01 1970 00:00:00 GMT
14591459
Asset Size Chunks Chunk Names
1460-
main.js 2.75 KiB {404} [emitted] main
1460+
main.js 2.67 KiB {404} [emitted] main
14611461
Entrypoint main = main.js
1462-
[523] ./index.js + 2 modules 102 bytes {404} [built]
1462+
[21] ./b.js 8 bytes {404} [built]
1463+
cjs require ./b [143] ./index.js + 1 modules 1:0-14 ./a.js
1464+
[143] ./index.js + 1 modules 52 bytes {404} [built]
14631465
entry ./index main
1464-
[911] ./c.js 8 bytes {404} [built]
1465-
cjs require ./c [523] ./index.js + 2 modules 1:0-14 ./b.js
1466-
cjs require ./c [523] ./index.js + 2 modules 1:0-14 ./a.js
14671466
+ 2 hidden modules"
14681467
`;
14691468

test/statsCases/module-reasons/a.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require("./c");
1+
require("./b");
22
export const a = "a";

test/statsCases/module-reasons/b.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
require("./c");
2-
export const b = "b";
1+
// empty

test/statsCases/module-reasons/c.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
import "./a";
2-
import "./b";

0 commit comments

Comments
 (0)