Skip to content

Commit 1260bda

Browse files
committed
fix snapshots
1 parent 5ca57d5 commit 1260bda

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s
1717
"name": StringMatching "@codecov/astro-plugin",
1818
"version": "1.5.1",
1919
},
20-
"version": "2",
20+
"version": "3",
2121
}
2222
`;
2323
@@ -38,7 +38,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s
3838
"name": StringMatching "@codecov/astro-plugin",
3939
"version": "1.5.1",
4040
},
41-
"version": "2",
41+
"version": "3",
4242
}
4343
`;
4444
@@ -59,7 +59,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the
5959
"name": StringMatching "@codecov/astro-plugin",
6060
"version": "1.5.1",
6161
},
62-
"version": "2",
62+
"version": "3",
6363
}
6464
`;
6565
@@ -80,7 +80,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the
8080
"name": StringMatching "@codecov/astro-plugin",
8181
"version": "1.5.1",
8282
},
83-
"version": "2",
83+
"version": "3",
8484
}
8585
`;
8686
@@ -101,7 +101,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t
101101
"name": StringMatching "@codecov/astro-plugin",
102102
"version": "1.5.1",
103103
},
104-
"version": "2",
104+
"version": "3",
105105
}
106106
`;
107107
@@ -122,6 +122,6 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t
122122
"name": StringMatching "@codecov/astro-plugin",
123123
"version": "1.5.1",
124124
},
125-
"version": "2",
125+
"version": "3",
126126
}
127127
`;

integration-tests/fixtures/generate-bundle-stats/astro/astro-integration.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ describe("Generating astro stats", () => {
8484
entry: expect.any(Boolean),
8585
files: expect.arrayContaining([expect.any(String)]),
8686
names: expect.arrayContaining([expect.any(String)]),
87+
dynamicImports: expect.any(Array),
8788
},
8889
]),
8990
modules: expect.arrayContaining([
@@ -126,6 +127,7 @@ describe("Generating astro stats", () => {
126127
entry: expect.any(Boolean),
127128
files: expect.arrayContaining([expect.any(String)]),
128129
names: expect.arrayContaining([expect.any(String)]),
130+
dynamicImports: expect.any(Array),
129131
},
130132
]),
131133
modules: expect.arrayContaining([

integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match
152152
}
153153
`;
154154
155-
exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches the snapshot 1`] = `
155+
exports[`Generating webpack stats 5 source maps are enabled does not include any source maps 1`] = `
156156
{
157157
"assets": [
158158
{
@@ -163,7 +163,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches
163163
},
164164
],
165165
"builtAt": Any<Number>,
166-
"bundleName": StringContaining "test-webpack-v5-esm",
166+
"bundleName": StringNotContaining ".map",
167167
"bundler": {
168168
"name": "webpack",
169169
"version": "5.96.1",
@@ -228,7 +228,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches
228228
}
229229
`;
230230
231-
exports[`Generating webpack stats 5 source maps are enabled does not include any source maps 1`] = `
231+
exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches the snapshot 1`] = `
232232
{
233233
"assets": [
234234
{
@@ -239,7 +239,7 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any
239239
},
240240
],
241241
"builtAt": Any<Number>,
242-
"bundleName": StringNotContaining ".map",
242+
"bundleName": StringContaining "test-webpack-v5-esm",
243243
"bundler": {
244244
"name": "webpack",
245245
"version": "5.96.1",

packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`astroBundleAnalysisPlugin > when called > returns a plugin object 1`] =
44
{
55
"name": "@codecov/astro-plugin",
66
"pluginVersion": "1.5.1",
7-
"version": "2",
7+
"version": "3",
88
"vite": {
99
"generateBundle": [Function],
1010
},

0 commit comments

Comments
 (0)