Skip to content

Commit

Permalink
fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Dec 4, 2024
1 parent 5ca57d5 commit 1260bda
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
`;
Expand All @@ -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",
}
`;
Expand All @@ -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",
}
`;
Expand All @@ -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",
}
`;
Expand All @@ -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",
}
`;
Expand All @@ -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",
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down Expand Up @@ -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([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -163,7 +163,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches
},
],
"builtAt": Any<Number>,
"bundleName": StringContaining "test-webpack-v5-esm",
"bundleName": StringNotContaining ".map",
"bundler": {
"name": "webpack",
"version": "5.96.1",
Expand Down Expand Up @@ -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": [
{
Expand All @@ -239,7 +239,7 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any
},
],
"builtAt": Any<Number>,
"bundleName": StringNotContaining ".map",
"bundleName": StringContaining "test-webpack-v5-esm",
"bundler": {
"name": "webpack",
"version": "5.96.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
},
Expand Down

0 comments on commit 1260bda

Please sign in to comment.