Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .changeset/polite-dots-pump.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/purple-bikes-jam.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots

exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the snapshot 1`] = `
{
Expand All @@ -15,7 +15,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -36,7 +36,7 @@ exports[`Generating astro stats 4 {"format":"es","expected":"esm"} matches the s
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -57,7 +57,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -78,7 +78,7 @@ exports[`Generating astro stats 4 {"format":"esm","expected":"esm"} matches the
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -99,7 +99,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -120,7 +120,7 @@ exports[`Generating astro stats 4 {"format":"module","expected":"esm"} matches t
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -141,7 +141,7 @@ exports[`Generating astro stats 5 {"format":"es","expected":"esm"} matches the s
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -162,7 +162,7 @@ exports[`Generating astro stats 5 {"format":"es","expected":"esm"} matches the s
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -183,7 +183,7 @@ exports[`Generating astro stats 5 {"format":"esm","expected":"esm"} matches the
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -204,7 +204,7 @@ exports[`Generating astro stats 5 {"format":"esm","expected":"esm"} matches the
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -225,7 +225,7 @@ exports[`Generating astro stats 5 {"format":"module","expected":"esm"} matches t
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -246,7 +246,7 @@ exports[`Generating astro stats 5 {"format":"module","expected":"esm"} matches t
"outputPath": StringContaining "dist",
"plugin": {
"name": StringMatching "@codecov/astro-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots

exports[`Bundle Analyzer Integration Tests should generate a report and match the snapshot 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { expect } from "bun:test";

/**
* Use inside `toMatchSnapshot({ ... })` for bundle stats payloads that include `assets[]`.
* Compressed size (`gzipSize`) varies by OS and Node.js zlib, so snapshots must not pin it.
*/
export function bundleStatsAssetsHint() {
return expect.arrayContaining([
expect.objectContaining({
gzipSize: expect.any(Number),
name: expect.any(String),
normalized: expect.any(String),
size: expect.any(Number),
}),
]);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots

exports[`Generating nextjs stats 14 matches the snapshot 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots

exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the snapshot 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots

exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the snapshot 1`] = `
{
Expand All @@ -15,7 +15,7 @@ exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -36,7 +36,7 @@ exports[`Generating remix stats 2 {"format":"amd","expected":"amd"} matches the
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -57,7 +57,7 @@ exports[`Generating remix stats 2 {"format":"cjs","expected":"cjs"} matches the
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -78,7 +78,7 @@ exports[`Generating remix stats 2 {"format":"cjs","expected":"cjs"} matches the
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -99,7 +99,7 @@ exports[`Generating remix stats 2 {"format":"es","expected":"esm"} matches the s
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -120,7 +120,7 @@ exports[`Generating remix stats 2 {"format":"es","expected":"esm"} matches the s
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -141,7 +141,7 @@ exports[`Generating remix stats 2 {"format":"esm","expected":"esm"} matches the
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -162,7 +162,7 @@ exports[`Generating remix stats 2 {"format":"esm","expected":"esm"} matches the
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -183,7 +183,7 @@ exports[`Generating remix stats 2 {"format":"module","expected":"esm"} matches t
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand All @@ -204,7 +204,7 @@ exports[`Generating remix stats 2 {"format":"module","expected":"esm"} matches t
"outputPath": StringContaining "build",
"plugin": {
"name": StringMatching "@codecov/remix-vite-plugin",
"version": "1.9.1",
"version": "2.0.0",
},
"version": "3",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe("Generating remix stats", () => {

afterEach(async () => {
await $`rm -rf ${remixApp}/vite.config.ts`;
await $`rm -rf ${remixApp}/vite.config.ts.timestamp-*`;
await $`rm -rf ${remixApp}/vite.config.ts.timestamp-*`.nothrow();
await $`rm -rf ${remixApp}/build`;
await $`rm -rf ./fixtures/generate-bundle-stats/remix/build`;
});
Expand Down
Loading
Loading