diff --git a/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap index bfedd48f..5b4e9ca0 100644 --- a/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/astro/__snapshots__/astro-integration.test.ts.snap @@ -17,7 +17,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s "name": StringMatching "@codecov/astro-plugin", "version": "1.5.1", }, - "version": "2", + "version": "3", } `; @@ -38,7 +38,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s "name": StringMatching "@codecov/astro-plugin", "version": "1.5.1", }, - "version": "2", + "version": "3", } `; @@ -59,7 +59,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the "name": StringMatching "@codecov/astro-plugin", "version": "1.5.1", }, - "version": "2", + "version": "3", } `; @@ -80,7 +80,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the "name": StringMatching "@codecov/astro-plugin", "version": "1.5.1", }, - "version": "2", + "version": "3", } `; @@ -101,7 +101,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t "name": StringMatching "@codecov/astro-plugin", "version": "1.5.1", }, - "version": "2", + "version": "3", } `; @@ -122,6 +122,6 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t "name": StringMatching "@codecov/astro-plugin", "version": "1.5.1", }, - "version": "2", + "version": "3", } `; diff --git a/integration-tests/fixtures/generate-bundle-stats/astro/astro-integration.test.ts b/integration-tests/fixtures/generate-bundle-stats/astro/astro-integration.test.ts index ccdf260f..53f22c3d 100644 --- a/integration-tests/fixtures/generate-bundle-stats/astro/astro-integration.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/astro/astro-integration.test.ts @@ -84,6 +84,7 @@ describe("Generating astro stats", () => { entry: expect.any(Boolean), files: expect.arrayContaining([expect.any(String)]), names: expect.arrayContaining([expect.any(String)]), + dynamicImports: expect.any(Array), }, ]), modules: expect.arrayContaining([ @@ -126,6 +127,7 @@ describe("Generating astro stats", () => { entry: expect.any(Boolean), files: expect.arrayContaining([expect.any(String)]), names: expect.arrayContaining([expect.any(String)]), + dynamicImports: expect.any(Array), }, ]), modules: expect.arrayContaining([ diff --git a/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap index 3161b865..eb594fb7 100644 --- a/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap @@ -152,7 +152,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match } `; -exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` +exports[`Generating webpack stats 5 source maps are enabled does not include any source maps 1`] = ` { "assets": [ { @@ -163,7 +163,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches }, ], "builtAt": Any, - "bundleName": StringContaining "test-webpack-v5-esm", + "bundleName": StringNotContaining ".map", "bundler": { "name": "webpack", "version": "5.96.1", @@ -228,7 +228,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches } `; -exports[`Generating webpack stats 5 source maps are enabled does not include any source maps 1`] = ` +exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { "assets": [ { @@ -239,7 +239,7 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any }, ], "builtAt": Any, - "bundleName": StringNotContaining ".map", + "bundleName": StringContaining "test-webpack-v5-esm", "bundler": { "name": "webpack", "version": "5.96.1", diff --git a/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap b/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap index 689cb754..f71846d6 100644 --- a/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap +++ b/packages/astro-plugin/src/astro-bundle-analysis/__tests__/__snapshots__/astroBundleAnalysisPlugin.test.ts.snap @@ -4,7 +4,7 @@ exports[`astroBundleAnalysisPlugin > when called > returns a plugin object 1`] = { "name": "@codecov/astro-plugin", "pluginVersion": "1.5.1", - "version": "2", + "version": "3", "vite": { "generateBundle": [Function], },