Skip to content

Commit 41e0ba3

Browse files
test: refresh snapshots for v2.0.0 and stabilize e2e on Bun
- Update Vitest snapshots for pluginVersion after the 2.0.0 release bump - Update Bun integration snapshots for plugin.version in bundle stats - Use concrete vite/webpack config paths (.ts/.cjs); .config.* was passed literally to Node under Bun shell, breaking local and CI runs - Use .nothrow() when removing optional vite.config.ts.timestamp-* in Remix and SvelteKit invalid-bundle-name tests - Run test:e2e:update against fixtures/* with --max-concurrency=1 Made-with: Cursor
1 parent d59156d commit 41e0ba3

File tree

24 files changed

+160
-171
lines changed

24 files changed

+160
-171
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Bun Snapshot v1, https://goo.gl/fbAQLP
1+
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
22

33
exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the snapshot 1`] = `
44
{
@@ -15,7 +15,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s
1515
"outputPath": StringContaining "dist",
1616
"plugin": {
1717
"name": StringMatching "@codecov/astro-plugin",
18-
"version": "1.9.1",
18+
"version": "2.0.0",
1919
},
2020
"version": "3",
2121
}
@@ -36,7 +36,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s
3636
"outputPath": StringContaining "dist",
3737
"plugin": {
3838
"name": StringMatching "@codecov/astro-plugin",
39-
"version": "1.9.1",
39+
"version": "2.0.0",
4040
},
4141
"version": "3",
4242
}
@@ -57,7 +57,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the
5757
"outputPath": StringContaining "dist",
5858
"plugin": {
5959
"name": StringMatching "@codecov/astro-plugin",
60-
"version": "1.9.1",
60+
"version": "2.0.0",
6161
},
6262
"version": "3",
6363
}
@@ -78,7 +78,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the
7878
"outputPath": StringContaining "dist",
7979
"plugin": {
8080
"name": StringMatching "@codecov/astro-plugin",
81-
"version": "1.9.1",
81+
"version": "2.0.0",
8282
},
8383
"version": "3",
8484
}
@@ -99,7 +99,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t
9999
"outputPath": StringContaining "dist",
100100
"plugin": {
101101
"name": StringMatching "@codecov/astro-plugin",
102-
"version": "1.9.1",
102+
"version": "2.0.0",
103103
},
104104
"version": "3",
105105
}
@@ -120,7 +120,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t
120120
"outputPath": StringContaining "dist",
121121
"plugin": {
122122
"name": StringMatching "@codecov/astro-plugin",
123-
"version": "1.9.1",
123+
"version": "2.0.0",
124124
},
125125
"version": "3",
126126
}
@@ -141,7 +141,7 @@ exports[`Generating astro stats 5 {"format":"es","expected":"esm"} matches the s
141141
"outputPath": StringContaining "dist",
142142
"plugin": {
143143
"name": StringMatching "@codecov/astro-plugin",
144-
"version": "1.9.1",
144+
"version": "2.0.0",
145145
},
146146
"version": "3",
147147
}
@@ -162,7 +162,7 @@ exports[`Generating astro stats 5 {"format":"es","expected":"esm"} matches the s
162162
"outputPath": StringContaining "dist",
163163
"plugin": {
164164
"name": StringMatching "@codecov/astro-plugin",
165-
"version": "1.9.1",
165+
"version": "2.0.0",
166166
},
167167
"version": "3",
168168
}
@@ -183,7 +183,7 @@ exports[`Generating astro stats 5 {"format":"esm","expected":"esm"} matches the
183183
"outputPath": StringContaining "dist",
184184
"plugin": {
185185
"name": StringMatching "@codecov/astro-plugin",
186-
"version": "1.9.1",
186+
"version": "2.0.0",
187187
},
188188
"version": "3",
189189
}
@@ -204,7 +204,7 @@ exports[`Generating astro stats 5 {"format":"esm","expected":"esm"} matches the
204204
"outputPath": StringContaining "dist",
205205
"plugin": {
206206
"name": StringMatching "@codecov/astro-plugin",
207-
"version": "1.9.1",
207+
"version": "2.0.0",
208208
},
209209
"version": "3",
210210
}
@@ -225,7 +225,7 @@ exports[`Generating astro stats 5 {"format":"module","expected":"esm"} matches t
225225
"outputPath": StringContaining "dist",
226226
"plugin": {
227227
"name": StringMatching "@codecov/astro-plugin",
228-
"version": "1.9.1",
228+
"version": "2.0.0",
229229
},
230230
"version": "3",
231231
}
@@ -246,7 +246,7 @@ exports[`Generating astro stats 5 {"format":"module","expected":"esm"} matches t
246246
"outputPath": StringContaining "dist",
247247
"plugin": {
248248
"name": StringMatching "@codecov/astro-plugin",
249-
"version": "1.9.1",
249+
"version": "2.0.0",
250250
},
251251
"version": "3",
252252
}

integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Bun Snapshot v1, https://goo.gl/fbAQLP
1+
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
22

33
exports[`Bundle Analyzer Integration Tests should generate a report and match the snapshot 1`] = `
44
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Bun Snapshot v1, https://goo.gl/fbAQLP
1+
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
22

33
exports[`Generating nextjs stats 14 matches the snapshot 1`] = `
44
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Bun Snapshot v1, https://goo.gl/fbAQLP
1+
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
22

33
exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the snapshot 1`] = `
44
{

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Bun Snapshot v1, https://goo.gl/fbAQLP
1+
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
22

33
exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the snapshot 1`] = `
44
{
@@ -15,7 +15,7 @@ exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the
1515
"outputPath": StringContaining "build",
1616
"plugin": {
1717
"name": StringMatching "@codecov/remix-vite-plugin",
18-
"version": "1.9.1",
18+
"version": "2.0.0",
1919
},
2020
"version": "3",
2121
}
@@ -36,7 +36,7 @@ exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the
3636
"outputPath": StringContaining "build",
3737
"plugin": {
3838
"name": StringMatching "@codecov/remix-vite-plugin",
39-
"version": "1.9.1",
39+
"version": "2.0.0",
4040
},
4141
"version": "3",
4242
}
@@ -57,7 +57,7 @@ exports[`Generating remix stats 2 {"format":"cjs","expected":"cjs"} matches the
5757
"outputPath": StringContaining "build",
5858
"plugin": {
5959
"name": StringMatching "@codecov/remix-vite-plugin",
60-
"version": "1.9.1",
60+
"version": "2.0.0",
6161
},
6262
"version": "3",
6363
}
@@ -78,7 +78,7 @@ exports[`Generating remix stats 2 {"format":"cjs","expected":"cjs"} matches the
7878
"outputPath": StringContaining "build",
7979
"plugin": {
8080
"name": StringMatching "@codecov/remix-vite-plugin",
81-
"version": "1.9.1",
81+
"version": "2.0.0",
8282
},
8383
"version": "3",
8484
}
@@ -99,7 +99,7 @@ exports[`Generating remix stats 2 {"format":"es","expected":"esm"} matches the s
9999
"outputPath": StringContaining "build",
100100
"plugin": {
101101
"name": StringMatching "@codecov/remix-vite-plugin",
102-
"version": "1.9.1",
102+
"version": "2.0.0",
103103
},
104104
"version": "3",
105105
}
@@ -120,7 +120,7 @@ exports[`Generating remix stats 2 {"format":"es","expected":"esm"} matches the s
120120
"outputPath": StringContaining "build",
121121
"plugin": {
122122
"name": StringMatching "@codecov/remix-vite-plugin",
123-
"version": "1.9.1",
123+
"version": "2.0.0",
124124
},
125125
"version": "3",
126126
}
@@ -141,7 +141,7 @@ exports[`Generating remix stats 2 {"format":"esm","expected":"esm"} matches the
141141
"outputPath": StringContaining "build",
142142
"plugin": {
143143
"name": StringMatching "@codecov/remix-vite-plugin",
144-
"version": "1.9.1",
144+
"version": "2.0.0",
145145
},
146146
"version": "3",
147147
}
@@ -162,7 +162,7 @@ exports[`Generating remix stats 2 {"format":"esm","expected":"esm"} matches the
162162
"outputPath": StringContaining "build",
163163
"plugin": {
164164
"name": StringMatching "@codecov/remix-vite-plugin",
165-
"version": "1.9.1",
165+
"version": "2.0.0",
166166
},
167167
"version": "3",
168168
}
@@ -183,7 +183,7 @@ exports[`Generating remix stats 2 {"format":"module","expected":"esm"} matches t
183183
"outputPath": StringContaining "build",
184184
"plugin": {
185185
"name": StringMatching "@codecov/remix-vite-plugin",
186-
"version": "1.9.1",
186+
"version": "2.0.0",
187187
},
188188
"version": "3",
189189
}
@@ -204,7 +204,7 @@ exports[`Generating remix stats 2 {"format":"module","expected":"esm"} matches t
204204
"outputPath": StringContaining "build",
205205
"plugin": {
206206
"name": StringMatching "@codecov/remix-vite-plugin",
207-
"version": "1.9.1",
207+
"version": "2.0.0",
208208
},
209209
"version": "3",
210210
}

integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe("Generating remix stats", () => {
168168

169169
afterEach(async () => {
170170
await $`rm -rf ${remixApp}/vite.config.ts`;
171-
await $`rm -rf ${remixApp}/vite.config.ts.timestamp-*`;
171+
await $`rm -rf ${remixApp}/vite.config.ts.timestamp-*`.nothrow();
172172
await $`rm -rf ${remixApp}/build`;
173173
await $`rm -rf ./fixtures/generate-bundle-stats/remix/build`;
174174
});

0 commit comments

Comments
 (0)