Skip to content

Commit e6e38c9

Browse files
committed
update next integration tests to 15
1 parent 11d3d9b commit e6e38c9

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed

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

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ exports[`Generating nextjs stats 14 matches the snapshot 1`] = `
2121
}
2222
`;
2323
24-
exports[`Generating nextjs stats 14 matches the snapshot 2`] = `
24+
exports[`Generating nextjs stats 15 matches the snapshot 2`] = `
2525
{
2626
"assets": ExpectArrayContaining {},
2727
"builtAt": Any<Number>,
28-
"bundleName": StringContaining "test-nextjs-v14-server-cjs",
28+
"bundleName": StringContaining "test-nextjs-v15-server-cjs",
2929
"bundler": {
3030
"name": Any<String>,
3131
"version": Any<String>,
@@ -42,11 +42,32 @@ exports[`Generating nextjs stats 14 matches the snapshot 2`] = `
4242
}
4343
`;
4444
45-
exports[`Generating nextjs stats 14 matches the snapshot 3`] = `
45+
exports[`Generating nextjs stats 15 matches the snapshot 3`] = `
4646
{
4747
"assets": ExpectArrayContaining {},
4848
"builtAt": Any<Number>,
49-
"bundleName": StringContaining "test-nextjs-v14-edge-server-array-push",
49+
"bundleName": StringContaining "test-nextjs-v15-edge-server-array-push",
50+
"bundler": {
51+
"name": Any<String>,
52+
"version": Any<String>,
53+
},
54+
"chunks": ExpectArrayContaining {},
55+
"duration": Any<Number>,
56+
"modules": ExpectArrayContaining {},
57+
"outputPath": Any<String>,
58+
"plugin": {
59+
"name": StringMatching "@codecov/nextjs-webpack-plugin",
60+
"version": Any<String>,
61+
},
62+
"version": Any<String>,
63+
}
64+
`;
65+
66+
exports[`Generating nextjs stats 15 matches the snapshot 1`] = `
67+
{
68+
"assets": ExpectArrayContaining {},
69+
"builtAt": Any<Number>,
70+
"bundleName": StringContaining "test-nextjs-v15-client-array-push",
5071
"bundler": {
5172
"name": Any<String>,
5273
"version": Any<String>,

integration-tests/fixtures/generate-bundle-stats/nextjs/next-base.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
config.plugins.push(
77
codecovNextJSWebpackPlugin({
88
enableBundleAnalysis: true,
9-
bundleName: "test-nextjs-v14",
9+
bundleName: "test-nextjs-v15",
1010
uploadToken: "test-token",
1111
apiUrl: process.env.API_URL,
1212
webpack: options.webpack,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { GenerateConfig } from "../../../scripts/gen-config";
55

66
const nextjsApp = "test-apps/nextjs";
77

8-
const VERSIONS = [14];
8+
const VERSIONS = [15];
99

1010
describe("Generating nextjs stats", () => {
1111
describe.each(VERSIONS)("%d", (version) => {
@@ -15,8 +15,8 @@ describe("Generating nextjs stats", () => {
1515
configFileName: "next",
1616
format: "esm",
1717
detectFormat: "esm",
18-
version: `v14`,
19-
detectVersion: "v14",
18+
version: `v15`,
19+
detectVersion: "v15",
2020
file_format: "mjs",
2121
enableSourceMaps: false,
2222
overrideOutputPath: `${nextjsApp}/next.config.mjs`,
@@ -193,7 +193,7 @@ describe("Generating nextjs stats", () => {
193193
});
194194

195195
await config.createConfig();
196-
config.removeBundleName(`test-nextjs-v14`);
196+
config.removeBundleName(`test-nextjs-v15`);
197197
await config.writeConfig();
198198
});
199199

0 commit comments

Comments
 (0)