Skip to content

Commit b291ee0

Browse files
committed
fix up type issues in webpack processChunks test
1 parent 7937975 commit b291ee0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/webpack-plugin/src/webpack-bundle-analysis/utils/__tests__/processChunks.test.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("processChunks", () => {
88
it("should process chunks", () => {
99
const chunks = [
1010
{
11-
id: 1,
11+
id: "1",
1212
entry: true,
1313
initial: true,
1414
files: ["file1.js"],
@@ -17,6 +17,10 @@ describe("processChunks", () => {
1717
recorded: true,
1818
size: 1000,
1919
hash: "hash1",
20+
sizes: {},
21+
idHints: [],
22+
auxiliaryFiles: [],
23+
childrenByOrder: {},
2024
},
2125
{
2226
id: 2,
@@ -28,6 +32,10 @@ describe("processChunks", () => {
2832
recorded: true,
2933
size: 2000,
3034
hash: "hash2",
35+
sizes: {},
36+
idHints: [],
37+
auxiliaryFiles: [],
38+
childrenByOrder: {},
3139
},
3240
] satisfies StatsChunk[];
3341

@@ -66,6 +74,10 @@ describe("processChunks", () => {
6674
recorded: true,
6775
size: 1000,
6876
hash: "hash1",
77+
sizes: {},
78+
idHints: [],
79+
auxiliaryFiles: [],
80+
childrenByOrder: {},
6981
},
7082
{
7183
entry: true,
@@ -76,6 +88,10 @@ describe("processChunks", () => {
7688
recorded: true,
7789
size: 2000,
7890
hash: "hash2",
91+
sizes: {},
92+
idHints: [],
93+
auxiliaryFiles: [],
94+
childrenByOrder: {},
7995
},
8096
] satisfies StatsChunk[];
8197

0 commit comments

Comments
 (0)