From f7903e961aa0136a576dae7cd32186381057b5e9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 14:50:34 +0000 Subject: [PATCH 1/5] meta(changelog): Update package versions --- .changeset/polite-dots-pump.md | 34 --------------------- .changeset/purple-bikes-jam.md | 15 --------- packages/astro-plugin/CHANGELOG.md | 33 ++++++++++++++++++++ packages/astro-plugin/package.json | 2 +- packages/bundle-analyzer/CHANGELOG.md | 32 +++++++++++++++++++ packages/bundle-analyzer/package.json | 2 +- packages/bundler-plugin-core/CHANGELOG.md | 29 ++++++++++++++++++ packages/bundler-plugin-core/package.json | 2 +- packages/nextjs-webpack-plugin/CHANGELOG.md | 33 ++++++++++++++++++++ packages/nextjs-webpack-plugin/package.json | 2 +- packages/nuxt-plugin/CHANGELOG.md | 33 ++++++++++++++++++++ packages/nuxt-plugin/package.json | 2 +- packages/remix-vite-plugin/CHANGELOG.md | 33 ++++++++++++++++++++ packages/remix-vite-plugin/package.json | 2 +- packages/rollup-plugin/CHANGELOG.md | 32 +++++++++++++++++++ packages/rollup-plugin/package.json | 2 +- packages/solidstart-plugin/CHANGELOG.md | 33 ++++++++++++++++++++ packages/solidstart-plugin/package.json | 2 +- packages/sveltekit-plugin/CHANGELOG.md | 33 ++++++++++++++++++++ packages/sveltekit-plugin/package.json | 2 +- packages/vite-plugin/CHANGELOG.md | 32 +++++++++++++++++++ packages/vite-plugin/package.json | 2 +- packages/webpack-plugin/CHANGELOG.md | 32 +++++++++++++++++++ packages/webpack-plugin/package.json | 2 +- 24 files changed, 366 insertions(+), 60 deletions(-) delete mode 100644 .changeset/polite-dots-pump.md delete mode 100644 .changeset/purple-bikes-jam.md diff --git a/.changeset/polite-dots-pump.md b/.changeset/polite-dots-pump.md deleted file mode 100644 index bc18e2cd..00000000 --- a/.changeset/polite-dots-pump.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -"@codecov/astro-plugin": major -"@codecov/bundle-analyzer": major -"@codecov/bundler-plugin-core": major -"@codecov/nextjs-webpack-plugin": major -"@codecov/nuxt-plugin": major -"@codecov/remix-vite-plugin": major -"@codecov/rollup-plugin": major -"@codecov/solidstart-plugin": major -"@codecov/sveltekit-plugin": major -"@codecov/vite-plugin": major -"@codecov/webpack-plugin": major ---- - -Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 - -Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). - -**@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) - -- **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. -- **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). - -**@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) - -- **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. -- **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). -- **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). - -**Impact here** - -- Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. -- **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. -- **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). diff --git a/.changeset/purple-bikes-jam.md b/.changeset/purple-bikes-jam.md deleted file mode 100644 index 7f13f307..00000000 --- a/.changeset/purple-bikes-jam.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@codecov/astro-plugin": patch -"@codecov/bundle-analyzer": patch -"@codecov/bundler-plugin-core": patch -"@codecov/nextjs-webpack-plugin": patch -"@codecov/nuxt-plugin": patch -"@codecov/remix-vite-plugin": patch -"@codecov/rollup-plugin": patch -"@codecov/solidstart-plugin": patch -"@codecov/sveltekit-plugin": patch -"@codecov/vite-plugin": patch -"@codecov/webpack-plugin": patch ---- - -update GitHub Actions workflow permissions diff --git a/packages/astro-plugin/CHANGELOG.md b/packages/astro-plugin/CHANGELOG.md index 8d6e5319..9ddf8ec7 100644 --- a/packages/astro-plugin/CHANGELOG.md +++ b/packages/astro-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/astro-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/astro-plugin/package.json b/packages/astro-plugin/package.json index 779d4ba2..22ddcdf8 100644 --- a/packages/astro-plugin/package.json +++ b/packages/astro-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/astro-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Astro Plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/bundle-analyzer/CHANGELOG.md b/packages/bundle-analyzer/CHANGELOG.md index 41923022..07a0aaeb 100644 --- a/packages/bundle-analyzer/CHANGELOG.md +++ b/packages/bundle-analyzer/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/bundle-analyzer +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/bundle-analyzer/package.json b/packages/bundle-analyzer/package.json index d7a1b449..08bd1fa8 100644 --- a/packages/bundle-analyzer/package.json +++ b/packages/bundle-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/bundle-analyzer", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Bundle Analyzer", "author": "Codecov", "license": "MIT", diff --git a/packages/bundler-plugin-core/CHANGELOG.md b/packages/bundler-plugin-core/CHANGELOG.md index 49d72acc..a53aad0b 100644 --- a/packages/bundler-plugin-core/CHANGELOG.md +++ b/packages/bundler-plugin-core/CHANGELOG.md @@ -1,5 +1,34 @@ # @codecov/bundler-plugin-core +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions + ## 1.9.1 ### Patch Changes diff --git a/packages/bundler-plugin-core/package.json b/packages/bundler-plugin-core/package.json index 4139e70d..e9802879 100644 --- a/packages/bundler-plugin-core/package.json +++ b/packages/bundler-plugin-core/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/bundler-plugin-core", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Bundler Plugin Core", "author": "Codecov", "license": "MIT", diff --git a/packages/nextjs-webpack-plugin/CHANGELOG.md b/packages/nextjs-webpack-plugin/CHANGELOG.md index 5cdffda6..f3d7b232 100644 --- a/packages/nextjs-webpack-plugin/CHANGELOG.md +++ b/packages/nextjs-webpack-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/nextjs-webpack-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/webpack-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/nextjs-webpack-plugin/package.json b/packages/nextjs-webpack-plugin/package.json index 98ef5001..7b883c95 100644 --- a/packages/nextjs-webpack-plugin/package.json +++ b/packages/nextjs-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/nextjs-webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov NextJS (Webpack) plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/nuxt-plugin/CHANGELOG.md b/packages/nuxt-plugin/CHANGELOG.md index 69959bac..b878c293 100644 --- a/packages/nuxt-plugin/CHANGELOG.md +++ b/packages/nuxt-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/nuxt-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/nuxt-plugin/package.json b/packages/nuxt-plugin/package.json index 387143a3..d81af080 100644 --- a/packages/nuxt-plugin/package.json +++ b/packages/nuxt-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/nuxt-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Nuxt plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/remix-vite-plugin/CHANGELOG.md b/packages/remix-vite-plugin/CHANGELOG.md index 75188ae0..cf175301 100644 --- a/packages/remix-vite-plugin/CHANGELOG.md +++ b/packages/remix-vite-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/remix-vite-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/remix-vite-plugin/package.json b/packages/remix-vite-plugin/package.json index d0d4eaaf..c069f4d7 100644 --- a/packages/remix-vite-plugin/package.json +++ b/packages/remix-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/remix-vite-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Remix plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/rollup-plugin/CHANGELOG.md b/packages/rollup-plugin/CHANGELOG.md index 0d66918f..edb0f405 100644 --- a/packages/rollup-plugin/CHANGELOG.md +++ b/packages/rollup-plugin/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/rollup-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index 548daa7d..803bbc79 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Rollup plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/solidstart-plugin/CHANGELOG.md b/packages/solidstart-plugin/CHANGELOG.md index 1fd49c71..6db65fc6 100644 --- a/packages/solidstart-plugin/CHANGELOG.md +++ b/packages/solidstart-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/solidstart-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/solidstart-plugin/package.json b/packages/solidstart-plugin/package.json index 210adead..17991192 100644 --- a/packages/solidstart-plugin/package.json +++ b/packages/solidstart-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/solidstart-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov SolidStart plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/sveltekit-plugin/CHANGELOG.md b/packages/sveltekit-plugin/CHANGELOG.md index cbb56bee..860d9272 100644 --- a/packages/sveltekit-plugin/CHANGELOG.md +++ b/packages/sveltekit-plugin/CHANGELOG.md @@ -1,5 +1,38 @@ # @codecov/sveltekit-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + - @codecov/vite-plugin@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/sveltekit-plugin/package.json b/packages/sveltekit-plugin/package.json index e9ae401c..b047d7e2 100644 --- a/packages/sveltekit-plugin/package.json +++ b/packages/sveltekit-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov SvelteKit plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/vite-plugin/CHANGELOG.md b/packages/vite-plugin/CHANGELOG.md index c01a6430..ce2ac6fb 100644 --- a/packages/vite-plugin/CHANGELOG.md +++ b/packages/vite-plugin/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/vite-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index 86aee12f..f46723e6 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Vite plugin", "author": "Codecov", "license": "MIT", diff --git a/packages/webpack-plugin/CHANGELOG.md b/packages/webpack-plugin/CHANGELOG.md index f9bdc092..52aecb23 100644 --- a/packages/webpack-plugin/CHANGELOG.md +++ b/packages/webpack-plugin/CHANGELOG.md @@ -1,5 +1,37 @@ # @codecov/webpack-plugin +## 2.0.0 + +### Major Changes + +- 1950efe: Version 2.0.0 addresses critical security issues and dependency updates. It also drops support for Node 18 + + Bump `@actions/core` to ^3.0.0 and `@actions/github` to ^9.0.0, and set `engines.node` to `>=20.0.0` to match upstream. **Semver major** because supported Node.js drops below 20 (breaking for anyone still on Node 18). + + **@actions/core** ([actions/toolkit `packages/core/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)) + + - **v3.0.0**: ESM-only release; apps that `require("@actions/core")` directly must use dynamic `import()`. **`@codecov/bundler-plugin-core` bundles `@actions/core` and `@actions/github` into `dist/index.cjs`**, so `require("@codecov/bundler-plugin-core")` (e.g. Rollup/Webpack CJS configs) keeps working. + - **v2.x** (between 1.x and 3.x): Node 24 support and `@actions/http-client` upgrades (including 3.x in the 2.x line). + + **@actions/github** ([actions/toolkit `packages/github/RELEASES.md`](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)) + + - **v9.0.0**: ESM-only (same consideration as `@actions/core` for this package). Release notes also note improved TypeScript behavior with ESM and `@octokit/core/types`. + - **v8.0.0**: **Minimum Node.js is now 20** (previously 18); Octokit dependencies move to current major lines (`@octokit/core`, REST plugins, request stack). + - **v8.0.1**: Dependency updates (`undici`, `@actions/http-client`). + + **Impact here** + + - Runtime behavior we rely on is unchanged: `context` for GitHub Actions metadata and `getIDToken()` for OIDC uploads are still the supported APIs. + - **Build**: unbuild inlines `@actions/*` (and their transitive deps) like `@sentry/core`; `failOnWarn: false` suppresses expected “inlined implicit external” noise. Published `dist` is larger (~9 MB CJS) but avoids `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers. + - **Node 18** is no longer a supported runtime for this package; use **Node 20+** (aligned with `@actions/github` 8+ and this repo’s Volta pin on Node 20). + +### Patch Changes + +- 866e31a: update GitHub Actions workflow permissions +- Updated dependencies [1950efe] +- Updated dependencies [866e31a] + - @codecov/bundler-plugin-core@2.0.0 + ## 1.9.1 ### Patch Changes diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index e689171b..e8a1aa2e 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", "description": "Official Codecov Webpack plugin", "author": "Codecov", "license": "MIT", From 41e0ba37adfc05ff94bab8af751ee3127ad377b2 Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Sat, 11 Apr 2026 04:15:11 +0900 Subject: [PATCH 2/5] 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 --- .../astro-integration.test.ts.snap | 26 ++-- .../bundle-analyzer.test.ts.snap | 2 +- .../__snapshots__/nextjs-plugin.test.ts.snap | 2 +- .../__snapshots__/nuxt-plugin.test.ts.snap | 2 +- .../__snapshots__/remix-plugin.test.ts.snap | 22 ++-- .../remix/remix-plugin.test.ts | 2 +- .../__snapshots__/rollup-plugin.test.ts.snap | 82 ++++++------ .../solidstart-plugin.test.ts.snap | 2 +- .../sveltekit-plugin.test.ts.snap | 14 +- .../sveltekit/sveltekit-plugin.test.ts | 2 +- .../__snapshots__/vite-plugin.test.ts.snap | 122 +++++++++--------- .../vite/vite-plugin.test.ts | 2 +- .../__snapshots__/webpack-plugin.test.ts.snap | 18 +-- .../webpack/webpack-plugin.test.ts | 2 +- integration-tests/package.json | 2 +- .../astroBundleAnalysisPlugin.test.ts.snap | 2 +- ...JSWebpackBundleAnalysisPlugin.test.ts.snap | 2 +- .../nuxtBundleAnalysisPlugin.test.ts.snap | 2 +- .../remixBundleAnalysisPlugin.test.ts.snap | 2 +- .../rollupBundleAnalysisPlugin.test.ts.snap | 2 +- ...olidstartBundleAnalysisPlugin.test.ts.snap | 13 +- ...sveltekitBundleAnalysisPlugin.test.ts.snap | 2 +- .../viteBundleAnalysisPlugin.test.ts.snap | 2 +- .../webpackBundleAnalysisPlugin.test.ts.snap | 2 +- 24 files changed, 160 insertions(+), 171 deletions(-) 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 7b98040b..5de99e15 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 @@ -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`] = ` { @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } diff --git a/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap index 3dd428a2..3ed6bfb7 100644 --- a/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/bundle-analyzer/dotenv-vercel/__snapshots__/bundle-analyzer.test.ts.snap @@ -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`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap index 990daacd..1f338488 100644 --- a/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap @@ -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`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap index 619f4e96..5b0cf117 100644 --- a/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/nuxt/__snapshots__/nuxt-plugin.test.ts.snap @@ -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`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap index 786d68c0..6d585f39 100644 --- a/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/remix/__snapshots__/remix-plugin.test.ts.snap @@ -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`] = ` { @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } @@ -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", } diff --git a/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts index b16fbe3c..80eeb4bb 100644 --- a/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/remix/remix-plugin.test.ts @@ -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`; }); diff --git a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap index 5efe18c7..934753e3 100644 --- a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap @@ -1,10 +1,10 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { "assets": [ { - "gzipSize": 98808, + "gzipSize": 98687, "name": "main-1cbfd464.js", "normalized": "main-*.js", "size": 577073, @@ -72,7 +72,7 @@ exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -82,7 +82,7 @@ exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 98252, + "gzipSize": 98107, "name": "main-420d8aeb.js", "normalized": "main-*.js", "size": 560888, @@ -150,7 +150,7 @@ exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -160,7 +160,7 @@ exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98243, + "gzipSize": 98100, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560873, @@ -228,7 +228,7 @@ exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -238,7 +238,7 @@ exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98243, + "gzipSize": 98100, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560873, @@ -306,7 +306,7 @@ exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -316,7 +316,7 @@ exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches { "assets": [ { - "gzipSize": 98243, + "gzipSize": 98100, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560873, @@ -384,7 +384,7 @@ exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -394,7 +394,7 @@ exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches t { "assets": [ { - "gzipSize": 98804, + "gzipSize": 98684, "name": "main-cc182ba1.js", "normalized": "main-*.js", "size": 577068, @@ -462,7 +462,7 @@ exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches t "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -472,7 +472,7 @@ exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 98845, + "gzipSize": 98729, "name": "main-cdb2522f.js", "normalized": "main-*.js", "size": 577167, @@ -540,7 +540,7 @@ exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -550,7 +550,7 @@ exports[`Generating rollup stats 3 {"format":"system","expected":"system"} match { "assets": [ { - "gzipSize": 99908, + "gzipSize": 99782, "name": "main-b7135d24.js", "normalized": "main-*.js", "size": 609446, @@ -618,7 +618,7 @@ exports[`Generating rollup stats 3 {"format":"system","expected":"system"} match "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -628,7 +628,7 @@ exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} mat { "assets": [ { - "gzipSize": 99908, + "gzipSize": 99782, "name": "main-b7135d24.js", "normalized": "main-*.js", "size": 609446, @@ -696,7 +696,7 @@ exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} mat "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -706,7 +706,7 @@ exports[`Generating rollup stats 3 source maps are enabled does not include any { "assets": [ { - "gzipSize": 98275, + "gzipSize": 98134, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560915, @@ -774,7 +774,7 @@ exports[`Generating rollup stats 3 source maps are enabled does not include any "outputPath": StringContaining "/distV3", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -784,7 +784,7 @@ exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the { "assets": [ { - "gzipSize": 98808, + "gzipSize": 98687, "name": "main-Bz9ahex4.js", "normalized": "main-*.js", "size": 577073, @@ -852,7 +852,7 @@ exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -862,7 +862,7 @@ exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 98252, + "gzipSize": 98107, "name": "main-xb59kfqA.js", "normalized": "main-*.js", "size": 560888, @@ -930,7 +930,7 @@ exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -940,7 +940,7 @@ exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98243, + "gzipSize": 98100, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560873, @@ -1008,7 +1008,7 @@ exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1018,7 +1018,7 @@ exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98243, + "gzipSize": 98100, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560873, @@ -1086,7 +1086,7 @@ exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1096,7 +1096,7 @@ exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches { "assets": [ { - "gzipSize": 98243, + "gzipSize": 98100, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560873, @@ -1164,7 +1164,7 @@ exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1174,7 +1174,7 @@ exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches t { "assets": [ { - "gzipSize": 98804, + "gzipSize": 98684, "name": "main-B7VbaLUG.js", "normalized": "main-*.js", "size": 577068, @@ -1242,7 +1242,7 @@ exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches t "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1252,7 +1252,7 @@ exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 98845, + "gzipSize": 98729, "name": "main-DXhL8JQx.js", "normalized": "main-*.js", "size": 577167, @@ -1320,7 +1320,7 @@ exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1330,7 +1330,7 @@ exports[`Generating rollup stats 4 {"format":"system","expected":"system"} match { "assets": [ { - "gzipSize": 99908, + "gzipSize": 99782, "name": "main-DwblAVj_.js", "normalized": "main-*.js", "size": 609446, @@ -1398,7 +1398,7 @@ exports[`Generating rollup stats 4 {"format":"system","expected":"system"} match "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1408,7 +1408,7 @@ exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} mat { "assets": [ { - "gzipSize": 99908, + "gzipSize": 99782, "name": "main-DwblAVj_.js", "normalized": "main-*.js", "size": 609446, @@ -1476,7 +1476,7 @@ exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} mat "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1486,7 +1486,7 @@ exports[`Generating rollup stats 4 source maps are enabled does not include any { "assets": [ { - "gzipSize": 98277, + "gzipSize": 98134, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560915, @@ -1554,7 +1554,7 @@ exports[`Generating rollup stats 4 source maps are enabled does not include any "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/rollup-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap index f3c0c536..d948178b 100644 --- a/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/solidstart/__snapshots__/solidstart-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating solidstart stats 1 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { diff --git a/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap index a2460528..6f35d69b 100644 --- a/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/sveltekit/__snapshots__/sveltekit-plugin.test.ts.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating sveltekit stats 2 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { @@ -15,7 +15,7 @@ exports[`Generating sveltekit stats 2 {"format":"es","expected":"esm"} matches t "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -36,7 +36,7 @@ exports[`Generating sveltekit stats 2 {"format":"es","expected":"esm"} matches t "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -57,7 +57,7 @@ exports[`Generating sveltekit stats 2 {"format":"esm","expected":"esm"} matches "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -78,7 +78,7 @@ exports[`Generating sveltekit stats 2 {"format":"esm","expected":"esm"} matches "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -99,7 +99,7 @@ exports[`Generating sveltekit stats 2 {"format":"module","expected":"esm"} match "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -120,7 +120,7 @@ exports[`Generating sveltekit stats 2 {"format":"module","expected":"esm"} match "outputPath": StringContaining ".svelte-kit", "plugin": { "name": StringMatching "@codecov/sveltekit-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts index 00af7f06..ef776c2a 100644 --- a/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/sveltekit/sveltekit-plugin.test.ts @@ -165,7 +165,7 @@ describe("Generating sveltekit stats", () => { afterEach(async () => { await $`rm -rf ${sveltekitApp}/vite.config.ts`; await $`rm -rf ${sveltekitApp}/.svelte-kit`; - await $`rm -rf ${sveltekitApp}/vite.config.ts.timestamp-*`; + await $`rm -rf ${sveltekitApp}/vite.config.ts.timestamp-*`.nothrow(); await $`rm -rf ./fixtures/generate-bundle-stats/sveltekit/.svelte-kit`; }); diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap index 6d7000cc..a4e21605 100644 --- a/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap @@ -1,10 +1,10 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { "assets": [ { - "gzipSize": 26821, + "gzipSize": 26644, "name": "assets/index-b7a309be.js", "normalized": "assets/index-*.js", "size": 72360, @@ -86,7 +86,7 @@ exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -96,7 +96,7 @@ exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 26812, + "gzipSize": 26631, "name": "assets/index-7de22500.js", "normalized": "assets/index-*.js", "size": 72342, @@ -178,7 +178,7 @@ exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -188,7 +188,7 @@ exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the s { "assets": [ { - "gzipSize": 27169, + "gzipSize": 26978, "name": "assets/index-320c8eaf.js", "normalized": "assets/index-*.js", "size": 73071, @@ -270,7 +270,7 @@ exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -280,7 +280,7 @@ exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 27169, + "gzipSize": 26978, "name": "assets/index-320c8eaf.js", "normalized": "assets/index-*.js", "size": 73071, @@ -362,7 +362,7 @@ exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -372,7 +372,7 @@ exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches t { "assets": [ { - "gzipSize": 27169, + "gzipSize": 26978, "name": "assets/index-320c8eaf.js", "normalized": "assets/index-*.js", "size": 73071, @@ -454,7 +454,7 @@ exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -464,7 +464,7 @@ exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches th { "assets": [ { - "gzipSize": 26821, + "gzipSize": 26643, "name": "assets/index-646c8a11.js", "normalized": "assets/index-*.js", "size": 72356, @@ -546,7 +546,7 @@ exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches th "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -556,7 +556,7 @@ exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 26850, + "gzipSize": 26678, "name": "assets/index-5458a54a.js", "normalized": "assets/index-*.js", "size": 72423, @@ -638,7 +638,7 @@ exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -648,7 +648,7 @@ exports[`Generating vite stats v4 {"format":"system","expected":"system"} matche { "assets": [ { - "gzipSize": 26850, + "gzipSize": 26666, "name": "assets/index-2fd1a797.js", "normalized": "assets/index-*.js", "size": 72405, @@ -730,7 +730,7 @@ exports[`Generating vite stats v4 {"format":"system","expected":"system"} matche "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -740,7 +740,7 @@ exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matc { "assets": [ { - "gzipSize": 26850, + "gzipSize": 26666, "name": "assets/index-2fd1a797.js", "normalized": "assets/index-*.js", "size": 72405, @@ -822,7 +822,7 @@ exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matc "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -832,7 +832,7 @@ exports[`Generating vite stats v4 source maps are enabled does not include any s { "assets": [ { - "gzipSize": 27198, + "gzipSize": 27010, "name": "assets/index-320c8eaf.js", "normalized": "assets/index-*.js", "size": 73114, @@ -914,7 +914,7 @@ exports[`Generating vite stats v4 source maps are enabled does not include any s "outputPath": StringContaining "/distV4", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -924,7 +924,7 @@ exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the { "assets": [ { - "gzipSize": 26821, + "gzipSize": 26645, "name": "assets/index-D0r0olUW.js", "normalized": "assets/index-*.js", "size": 72360, @@ -1006,7 +1006,7 @@ exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1016,7 +1016,7 @@ exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 26812, + "gzipSize": 26632, "name": "assets/index-_9bu_Rar.js", "normalized": "assets/index-*.js", "size": 72342, @@ -1098,7 +1098,7 @@ exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1108,7 +1108,7 @@ exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the s { "assets": [ { - "gzipSize": 27169, + "gzipSize": 26981, "name": "assets/index-Cq3U4pkx.js", "normalized": "assets/index-*.js", "size": 73071, @@ -1190,7 +1190,7 @@ exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1200,7 +1200,7 @@ exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 27169, + "gzipSize": 26981, "name": "assets/index-Cq3U4pkx.js", "normalized": "assets/index-*.js", "size": 73071, @@ -1282,7 +1282,7 @@ exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1292,7 +1292,7 @@ exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches t { "assets": [ { - "gzipSize": 27169, + "gzipSize": 26981, "name": "assets/index-Cq3U4pkx.js", "normalized": "assets/index-*.js", "size": 73071, @@ -1374,7 +1374,7 @@ exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1384,7 +1384,7 @@ exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches th { "assets": [ { - "gzipSize": 26821, + "gzipSize": 26645, "name": "assets/index-B31DUBuo.js", "normalized": "assets/index-*.js", "size": 72356, @@ -1466,7 +1466,7 @@ exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches th "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1476,7 +1476,7 @@ exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 26850, + "gzipSize": 26679, "name": "assets/index-BFgpG9Ne.js", "normalized": "assets/index-*.js", "size": 72423, @@ -1558,7 +1558,7 @@ exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1568,7 +1568,7 @@ exports[`Generating vite stats v5 {"format":"system","expected":"system"} matche { "assets": [ { - "gzipSize": 26850, + "gzipSize": 26668, "name": "assets/index-Cn9uVtOh.js", "normalized": "assets/index-*.js", "size": 72405, @@ -1650,7 +1650,7 @@ exports[`Generating vite stats v5 {"format":"system","expected":"system"} matche "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1660,7 +1660,7 @@ exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matc { "assets": [ { - "gzipSize": 26850, + "gzipSize": 26668, "name": "assets/index-Cn9uVtOh.js", "normalized": "assets/index-*.js", "size": 72405, @@ -1742,7 +1742,7 @@ exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matc "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1752,7 +1752,7 @@ exports[`Generating vite stats v5 source maps are enabled does not include any s { "assets": [ { - "gzipSize": 27198, + "gzipSize": 27010, "name": "assets/index-Cq3U4pkx.js", "normalized": "assets/index-*.js", "size": 73114, @@ -1834,7 +1834,7 @@ exports[`Generating vite stats v5 source maps are enabled does not include any s "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1844,7 +1844,7 @@ exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the { "assets": [ { - "gzipSize": 26835, + "gzipSize": 26666, "name": "assets/index-BQsq0t7E.js", "normalized": "assets/index-*.js", "size": 72422, @@ -1933,7 +1933,7 @@ exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -1943,7 +1943,7 @@ exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 26852, + "gzipSize": 26679, "name": "assets/index-C4o0PbSK.js", "normalized": "assets/index-*.js", "size": 72402, @@ -2032,7 +2032,7 @@ exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2042,7 +2042,7 @@ exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the s { "assets": [ { - "gzipSize": 27189, + "gzipSize": 26997, "name": "assets/index-Cc5984px.js", "normalized": "assets/index-*.js", "size": 73131, @@ -2131,7 +2131,7 @@ exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the s "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2141,7 +2141,7 @@ exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 27189, + "gzipSize": 26997, "name": "assets/index-Cc5984px.js", "normalized": "assets/index-*.js", "size": 73131, @@ -2230,7 +2230,7 @@ exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2240,7 +2240,7 @@ exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches t { "assets": [ { - "gzipSize": 27189, + "gzipSize": 26997, "name": "assets/index-Cc5984px.js", "normalized": "assets/index-*.js", "size": 73131, @@ -2329,7 +2329,7 @@ exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches t "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2339,7 +2339,7 @@ exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches th { "assets": [ { - "gzipSize": 26836, + "gzipSize": 26670, "name": "assets/index-C2FevV0y.js", "normalized": "assets/index-*.js", "size": 72418, @@ -2428,7 +2428,7 @@ exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches th "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2438,7 +2438,7 @@ exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 26875, + "gzipSize": 26707, "name": "assets/index-CaYdJAO0.js", "normalized": "assets/index-*.js", "size": 72485, @@ -2527,7 +2527,7 @@ exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2537,7 +2537,7 @@ exports[`Generating vite stats v6 {"format":"system","expected":"system"} matche { "assets": [ { - "gzipSize": 26874, + "gzipSize": 26699, "name": "assets/index-CZb5YUA8.js", "normalized": "assets/index-*.js", "size": 72467, @@ -2626,7 +2626,7 @@ exports[`Generating vite stats v6 {"format":"system","expected":"system"} matche "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2636,7 +2636,7 @@ exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matc { "assets": [ { - "gzipSize": 26874, + "gzipSize": 26699, "name": "assets/index-CZb5YUA8.js", "normalized": "assets/index-*.js", "size": 72467, @@ -2725,7 +2725,7 @@ exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matc "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -2735,7 +2735,7 @@ exports[`Generating vite stats v6 source maps are enabled does not include any s { "assets": [ { - "gzipSize": 27219, + "gzipSize": 27028, "name": "assets/index-Cc5984px.js", "normalized": "assets/index-*.js", "size": 73174, @@ -2824,7 +2824,7 @@ exports[`Generating vite stats v6 source maps are enabled does not include any s "outputPath": StringContaining "/distV6", "plugin": { "name": StringMatching "@codecov/vite-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts index 467af41f..e7bf6d8f 100644 --- a/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts @@ -6,7 +6,7 @@ import { GenerateConfig } from "../../../scripts/gen-config"; const vitePath = (version: number) => `node_modules/viteV${version}/bin/vite.js`; const viteConfig = (version: number, format: string) => - `fixtures/generate-bundle-stats/vite/vite-v${version}-${format}.config.*`; + `fixtures/generate-bundle-stats/vite/vite-v${version}-${format}.config.ts`; const viteApp = "test-apps/vite"; const VERSIONS = [4, 5, 6]; 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 29b03d18..a6c1a2cf 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 @@ -1,10 +1,10 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-push"} matches the snapshot 1`] = ` { "assets": [ { - "gzipSize": 25250, + "gzipSize": 25115, "name": "main-2c458a0c7e378af1ec1a.js", "normalized": "main-*.js", "size": 70959, @@ -70,7 +70,7 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-pus "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -80,7 +80,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match { "assets": [ { - "gzipSize": 25250, + "gzipSize": 25115, "name": "main-2c458a0c7e378af1ec1a.js", "normalized": "main-*.js", "size": 70959, @@ -146,7 +146,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -156,7 +156,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches { "assets": [ { - "gzipSize": 25250, + "gzipSize": 25115, "name": "main-2c458a0c7e378af1ec1a.js", "normalized": "main-*.js", "size": 70959, @@ -222,7 +222,7 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } @@ -232,7 +232,7 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any { "assets": [ { - "gzipSize": 25250, + "gzipSize": 25115, "name": "main-2c458a0c7e378af1ec1a.js", "normalized": "main-*.js", "size": 70959, @@ -298,7 +298,7 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any "outputPath": StringContaining "/distV5", "plugin": { "name": StringMatching "@codecov/webpack-plugin", - "version": "1.9.1", + "version": "2.0.0", }, "version": "3", } diff --git a/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts index ddcac89d..5186fc87 100644 --- a/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts @@ -6,7 +6,7 @@ import { GenerateConfig } from "../../../scripts/gen-config"; const webpackPath = (version: number) => `node_modules/webpackV${version}/bin/webpack.js`; const webpackConfig = (version: number, format: string) => - `fixtures/generate-bundle-stats/webpack/webpack-v${version}-${format}.config.*`; + `fixtures/generate-bundle-stats/webpack/webpack-v${version}-${format}.config.cjs`; const webpackApp = "test-apps/webpack"; const VERSIONS = [5]; diff --git a/integration-tests/package.json b/integration-tests/package.json index fa493a12..0de481f4 100644 --- a/integration-tests/package.json +++ b/integration-tests/package.json @@ -7,7 +7,7 @@ "type": "module", "scripts": { "test:e2e": "bun test fixtures/*", - "test:e2e:update": "bun test --update-snapshots", + "test:e2e:update": "bun test fixtures/* --update-snapshots --max-concurrency=1", "test:e2e:astro": "bun test fixtures/**/astro/*", "test:e2e:bundle-analyzer": "bun test fixtures/**/bundle-analyzer/*", "test:e2e:nextjs": "bun test fixtures/**/nextjs/*", 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 e54af077..ab5cbc23 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 @@ -3,7 +3,7 @@ exports[`astroBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/astro-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap b/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap index 42f2b86d..8bc41663 100644 --- a/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap +++ b/packages/nextjs-webpack-plugin/src/nextjs-webpack-bundle-analysis/__tests__/__snapshots__/nextJSWebpackBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`webpackBundleAnalysisPlugin > when called > returns a plugin object 1`] "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/nextjs-webpack-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "webpack": [Function], "writeBundle": [Function], diff --git a/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap b/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap index 175d320f..70252ac1 100644 --- a/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap +++ b/packages/nuxt-plugin/src/nuxt-bundle-analysis/__tests__/__snapshots__/nuxtBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`nuxtBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/nuxt-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap b/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap index 92c40e42..fa2709bb 100644 --- a/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap +++ b/packages/remix-vite-plugin/src/remix-bundle-analysis/__tests__/__snapshots__/remixBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`remixBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/remix-vite-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap b/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap index 9bb203c2..2dc2bc3a 100644 --- a/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap +++ b/packages/rollup-plugin/src/rollup-bundle-analysis/__tests__/__snapshots__/rollupBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`rollupBundleAnalysisPlugin > when called > returns a plugin object 1`] "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/rollup-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "rollup": { "generateBundle": [Function], }, diff --git a/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap b/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap index 76662787..9d6b595f 100644 --- a/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap +++ b/packages/solidstart-plugin/src/solidstart-bundle-analysis/__tests__/__snapshots__/solidstartBundleAnalysisPlugin.test.ts.snap @@ -3,18 +3,7 @@ exports[`solidstartBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/solidstart-plugin", - "pluginVersion": "1.9.1", - "version": "3", - "vite": { - "generateBundle": [Function], - }, -} -`; - -exports[`sveltekitBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` -{ - "name": "@codecov/sveltekit-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap b/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap index 27626d75..5d6d13de 100644 --- a/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap +++ b/packages/sveltekit-plugin/src/sveltekit-bundle-analysis/__tests__/__snapshots__/sveltekitBundleAnalysisPlugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`sveltekitBundleAnalysisPlugin > when called > returns a plugin object 1`] = ` { "name": "@codecov/sveltekit-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap b/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap index 8b60e2ec..c5c2e7a8 100644 --- a/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap +++ b/packages/vite-plugin/src/vite-bundle-analysis/__tests__/__snapshots__/viteBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`viteBundleAnalysisPlugin > when called > returns a plugin object 1`] = "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/vite-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "vite": { "generateBundle": [Function], diff --git a/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap b/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap index 71e9c5c2..902b08da 100644 --- a/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap +++ b/packages/webpack-plugin/src/webpack-bundle-analysis/__tests__/__snapshots__/webpackBundleAnalysisPlugin.test.ts.snap @@ -5,7 +5,7 @@ exports[`webpackBundleAnalysisPlugin > when called > returns a plugin object 1`] "buildEnd": [Function], "buildStart": [Function], "name": "@codecov/webpack-plugin", - "pluginVersion": "1.9.1", + "pluginVersion": "2.0.0", "version": "3", "webpack": [Function], "writeBundle": [Function], From 78a02f904810271f70574bcb9b668b15dda048a0 Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Sat, 11 Apr 2026 05:18:26 +0900 Subject: [PATCH 3/5] test(e2e): align rollup snapshot gzipSize with CI (Ubuntu zlib) CI produces slightly different gzip lengths than local snapshot capture. Update stored gzipSize values to match GitHub Actions runner output. Made-with: Cursor --- .../__snapshots__/rollup-plugin.test.ts.snap | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap index 934753e3..554a082d 100644 --- a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap @@ -4,7 +4,7 @@ exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the { "assets": [ { - "gzipSize": 98687, + "gzipSize": 98808, "name": "main-1cbfd464.js", "normalized": "main-*.js", "size": 577073, @@ -82,7 +82,7 @@ exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 98107, + "gzipSize": 98252, "name": "main-420d8aeb.js", "normalized": "main-*.js", "size": 560888, @@ -160,7 +160,7 @@ exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98100, + "gzipSize": 98243, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560873, @@ -238,7 +238,7 @@ exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98100, + "gzipSize": 98243, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560873, @@ -316,7 +316,7 @@ exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches { "assets": [ { - "gzipSize": 98100, + "gzipSize": 98243, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560873, @@ -394,7 +394,7 @@ exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches t { "assets": [ { - "gzipSize": 98684, + "gzipSize": 98804, "name": "main-cc182ba1.js", "normalized": "main-*.js", "size": 577068, @@ -472,7 +472,7 @@ exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 98729, + "gzipSize": 98845, "name": "main-cdb2522f.js", "normalized": "main-*.js", "size": 577167, @@ -550,7 +550,7 @@ exports[`Generating rollup stats 3 {"format":"system","expected":"system"} match { "assets": [ { - "gzipSize": 99782, + "gzipSize": 99908, "name": "main-b7135d24.js", "normalized": "main-*.js", "size": 609446, @@ -628,7 +628,7 @@ exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} mat { "assets": [ { - "gzipSize": 99782, + "gzipSize": 99908, "name": "main-b7135d24.js", "normalized": "main-*.js", "size": 609446, @@ -706,7 +706,7 @@ exports[`Generating rollup stats 3 source maps are enabled does not include any { "assets": [ { - "gzipSize": 98134, + "gzipSize": 98275, "name": "main-6ff1e9ca.js", "normalized": "main-*.js", "size": 560915, @@ -784,7 +784,7 @@ exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the { "assets": [ { - "gzipSize": 98687, + "gzipSize": 98808, "name": "main-Bz9ahex4.js", "normalized": "main-*.js", "size": 577073, @@ -862,7 +862,7 @@ exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the { "assets": [ { - "gzipSize": 98107, + "gzipSize": 98252, "name": "main-xb59kfqA.js", "normalized": "main-*.js", "size": 560888, @@ -940,7 +940,7 @@ exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98100, + "gzipSize": 98243, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560873, @@ -1018,7 +1018,7 @@ exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the { "assets": [ { - "gzipSize": 98100, + "gzipSize": 98243, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560873, @@ -1096,7 +1096,7 @@ exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches { "assets": [ { - "gzipSize": 98100, + "gzipSize": 98243, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560873, @@ -1174,7 +1174,7 @@ exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches t { "assets": [ { - "gzipSize": 98684, + "gzipSize": 98804, "name": "main-B7VbaLUG.js", "normalized": "main-*.js", "size": 577068, @@ -1252,7 +1252,7 @@ exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the { "assets": [ { - "gzipSize": 98729, + "gzipSize": 98845, "name": "main-DXhL8JQx.js", "normalized": "main-*.js", "size": 577167, @@ -1330,7 +1330,7 @@ exports[`Generating rollup stats 4 {"format":"system","expected":"system"} match { "assets": [ { - "gzipSize": 99782, + "gzipSize": 99908, "name": "main-DwblAVj_.js", "normalized": "main-*.js", "size": 609446, @@ -1408,7 +1408,7 @@ exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} mat { "assets": [ { - "gzipSize": 99782, + "gzipSize": 99908, "name": "main-DwblAVj_.js", "normalized": "main-*.js", "size": 609446, @@ -1486,7 +1486,7 @@ exports[`Generating rollup stats 4 source maps are enabled does not include any { "assets": [ { - "gzipSize": 98134, + "gzipSize": 98275, "name": "main-DTMU6eC0.js", "normalized": "main-*.js", "size": 560915, From d6d6622f1048d5ea5e68b2eae8bab48b0e5199a0 Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Sat, 11 Apr 2026 05:45:29 +0900 Subject: [PATCH 4/5] test(e2e): stop pinning asset gzipSize in rollup/vite/webpack snapshots - Add bundleStatsAssetsHint() using expect.arrayContaining + objectContaining({ gzipSize: expect.any(Number), ... }) so Bun snapshots store ExpectArrayContaining instead of OS/Node-specific gzip lengths - Regenerate rollup, vite, and webpack snapshot files - Run e2e with --timeout 120000 and --max-concurrency=1 to avoid flaky 5s default timeouts and parallel races - Gitignore Vite timestamp artifacts under fixtures/vite Made-with: Cursor --- .../bundle-stats-snapshot-hints.ts | 16 ++ .../__snapshots__/rollup-plugin.test.ts.snap | 180 ++---------- .../rollup/rollup-plugin.test.ts | 3 + .../generate-bundle-stats/vite/.gitignore | 1 + .../__snapshots__/vite-plugin.test.ts.snap | 270 ++---------------- .../vite/vite-plugin.test.ts | 3 + .../__snapshots__/webpack-plugin.test.ts.snap | 36 +-- .../webpack/webpack-plugin.test.ts | 3 + integration-tests/package.json | 4 +- 9 files changed, 82 insertions(+), 434 deletions(-) create mode 100644 integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts create mode 100644 integration-tests/fixtures/generate-bundle-stats/vite/.gitignore diff --git a/integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts b/integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts new file mode 100644 index 00000000..ba9e9198 --- /dev/null +++ b/integration-tests/fixtures/generate-bundle-stats/bundle-stats-snapshot-hints.ts @@ -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), + }), + ]); +} diff --git a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap index 554a082d..41089627 100644 --- a/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/rollup/__snapshots__/rollup-plugin.test.ts.snap @@ -2,14 +2,7 @@ exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98808, - "name": "main-1cbfd464.js", - "normalized": "main-*.js", - "size": 577073, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-amd", "bundler": { @@ -80,14 +73,7 @@ exports[`Generating rollup stats 3 {"format":"amd","expected":"amd"} matches the exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98252, - "name": "main-420d8aeb.js", - "normalized": "main-*.js", - "size": 560888, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-cjs", "bundler": { @@ -158,14 +144,7 @@ exports[`Generating rollup stats 3 {"format":"cjs","expected":"cjs"} matches the exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-esm", "bundler": { @@ -236,14 +215,7 @@ exports[`Generating rollup stats 3 {"format":"es","expected":"esm"} matches the exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-esm", "bundler": { @@ -314,14 +286,7 @@ exports[`Generating rollup stats 3 {"format":"esm","expected":"esm"} matches the exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-esm", "bundler": { @@ -392,14 +357,7 @@ exports[`Generating rollup stats 3 {"format":"module","expected":"esm"} matches exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98804, - "name": "main-cc182ba1.js", - "normalized": "main-*.js", - "size": 577068, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-iife", "bundler": { @@ -470,14 +428,7 @@ exports[`Generating rollup stats 3 {"format":"iife","expected":"iife"} matches t exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98845, - "name": "main-cdb2522f.js", - "normalized": "main-*.js", - "size": 577167, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-umd", "bundler": { @@ -548,14 +499,7 @@ exports[`Generating rollup stats 3 {"format":"umd","expected":"umd"} matches the exports[`Generating rollup stats 3 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-b7135d24.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-system", "bundler": { @@ -626,14 +570,7 @@ exports[`Generating rollup stats 3 {"format":"system","expected":"system"} match exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-b7135d24.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v3-system", "bundler": { @@ -704,14 +641,7 @@ exports[`Generating rollup stats 3 {"format":"systemjs","expected":"system"} mat exports[`Generating rollup stats 3 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 98275, - "name": "main-6ff1e9ca.js", - "normalized": "main-*.js", - "size": 560915, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -782,14 +712,7 @@ exports[`Generating rollup stats 3 source maps are enabled does not include any exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98808, - "name": "main-Bz9ahex4.js", - "normalized": "main-*.js", - "size": 577073, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-amd", "bundler": { @@ -860,14 +783,7 @@ exports[`Generating rollup stats 4 {"format":"amd","expected":"amd"} matches the exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98252, - "name": "main-xb59kfqA.js", - "normalized": "main-*.js", - "size": 560888, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-cjs", "bundler": { @@ -938,14 +854,7 @@ exports[`Generating rollup stats 4 {"format":"cjs","expected":"cjs"} matches the exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-esm", "bundler": { @@ -1016,14 +925,7 @@ exports[`Generating rollup stats 4 {"format":"es","expected":"esm"} matches the exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-esm", "bundler": { @@ -1094,14 +996,7 @@ exports[`Generating rollup stats 4 {"format":"esm","expected":"esm"} matches the exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98243, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560873, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-esm", "bundler": { @@ -1172,14 +1067,7 @@ exports[`Generating rollup stats 4 {"format":"module","expected":"esm"} matches exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98804, - "name": "main-B7VbaLUG.js", - "normalized": "main-*.js", - "size": 577068, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-iife", "bundler": { @@ -1250,14 +1138,7 @@ exports[`Generating rollup stats 4 {"format":"iife","expected":"iife"} matches t exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 98845, - "name": "main-DXhL8JQx.js", - "normalized": "main-*.js", - "size": 577167, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-umd", "bundler": { @@ -1328,14 +1209,7 @@ exports[`Generating rollup stats 4 {"format":"umd","expected":"umd"} matches the exports[`Generating rollup stats 4 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-DwblAVj_.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-system", "bundler": { @@ -1406,14 +1280,7 @@ exports[`Generating rollup stats 4 {"format":"system","expected":"system"} match exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 99908, - "name": "main-DwblAVj_.js", - "normalized": "main-*.js", - "size": 609446, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-rollup-v4-system", "bundler": { @@ -1484,14 +1351,7 @@ exports[`Generating rollup stats 4 {"format":"systemjs","expected":"system"} mat exports[`Generating rollup stats 4 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 98275, - "name": "main-DTMU6eC0.js", - "normalized": "main-*.js", - "size": 560915, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { diff --git a/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts index 76c3a175..9dc40fdf 100644 --- a/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/rollup/rollup-plugin.test.ts @@ -2,6 +2,7 @@ import { $ } from "bun"; import { describe, it, expect, afterEach, beforeEach } from "bun:test"; import { GenerateConfig } from "../../../scripts/gen-config"; +import { bundleStatsAssetsHint } from "../bundle-stats-snapshot-hints"; const rollupPath = (version: number) => `node_modules/rollupV${version}/dist/bin/rollup`; @@ -70,6 +71,7 @@ describe("Generating rollup stats", () => { bundleName: expect.stringContaining( `test-rollup-v${version}-${expected}`, ), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/rollup-plugin"), }, @@ -119,6 +121,7 @@ describe("Generating rollup stats", () => { duration: expect.any(Number), outputPath: expect.stringContaining(`/distV${version}`), bundleName: expect.not.stringContaining(".map"), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/rollup-plugin"), }, diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/.gitignore b/integration-tests/fixtures/generate-bundle-stats/vite/.gitignore new file mode 100644 index 00000000..2da76002 --- /dev/null +++ b/integration-tests/fixtures/generate-bundle-stats/vite/.gitignore @@ -0,0 +1 @@ +vite-*.config.ts.timestamp-* diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap b/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap index a4e21605..ff14caa8 100644 --- a/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap +++ b/integration-tests/fixtures/generate-bundle-stats/vite/__snapshots__/vite-plugin.test.ts.snap @@ -2,14 +2,7 @@ exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26644, - "name": "assets/index-b7a309be.js", - "normalized": "assets/index-*.js", - "size": 72360, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-amd", "bundler": { @@ -94,14 +87,7 @@ exports[`Generating vite stats v4 {"format":"amd","expected":"amd"} matches the exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26631, - "name": "assets/index-7de22500.js", - "normalized": "assets/index-*.js", - "size": 72342, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-cjs", "bundler": { @@ -186,14 +172,7 @@ exports[`Generating vite stats v4 {"format":"cjs","expected":"cjs"} matches the exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26978, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-esm", "bundler": { @@ -278,14 +257,7 @@ exports[`Generating vite stats v4 {"format":"es","expected":"esm"} matches the s exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26978, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-esm", "bundler": { @@ -370,14 +342,7 @@ exports[`Generating vite stats v4 {"format":"esm","expected":"esm"} matches the exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26978, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-esm", "bundler": { @@ -462,14 +427,7 @@ exports[`Generating vite stats v4 {"format":"module","expected":"esm"} matches t exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26643, - "name": "assets/index-646c8a11.js", - "normalized": "assets/index-*.js", - "size": 72356, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-iife", "bundler": { @@ -554,14 +512,7 @@ exports[`Generating vite stats v4 {"format":"iife","expected":"iife"} matches th exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26678, - "name": "assets/index-5458a54a.js", - "normalized": "assets/index-*.js", - "size": 72423, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-umd", "bundler": { @@ -646,14 +597,7 @@ exports[`Generating vite stats v4 {"format":"umd","expected":"umd"} matches the exports[`Generating vite stats v4 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26666, - "name": "assets/index-2fd1a797.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-system", "bundler": { @@ -738,14 +682,7 @@ exports[`Generating vite stats v4 {"format":"system","expected":"system"} matche exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26666, - "name": "assets/index-2fd1a797.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v4-system", "bundler": { @@ -830,14 +767,7 @@ exports[`Generating vite stats v4 {"format":"systemjs","expected":"system"} matc exports[`Generating vite stats v4 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 27010, - "name": "assets/index-320c8eaf.js", - "normalized": "assets/index-*.js", - "size": 73114, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -922,14 +852,7 @@ exports[`Generating vite stats v4 source maps are enabled does not include any s exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26645, - "name": "assets/index-D0r0olUW.js", - "normalized": "assets/index-*.js", - "size": 72360, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-amd", "bundler": { @@ -1014,14 +937,7 @@ exports[`Generating vite stats v5 {"format":"amd","expected":"amd"} matches the exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26632, - "name": "assets/index-_9bu_Rar.js", - "normalized": "assets/index-*.js", - "size": 72342, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-cjs", "bundler": { @@ -1106,14 +1022,7 @@ exports[`Generating vite stats v5 {"format":"cjs","expected":"cjs"} matches the exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26981, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-esm", "bundler": { @@ -1198,14 +1107,7 @@ exports[`Generating vite stats v5 {"format":"es","expected":"esm"} matches the s exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26981, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-esm", "bundler": { @@ -1290,14 +1192,7 @@ exports[`Generating vite stats v5 {"format":"esm","expected":"esm"} matches the exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26981, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73071, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-esm", "bundler": { @@ -1382,14 +1277,7 @@ exports[`Generating vite stats v5 {"format":"module","expected":"esm"} matches t exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26645, - "name": "assets/index-B31DUBuo.js", - "normalized": "assets/index-*.js", - "size": 72356, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-iife", "bundler": { @@ -1474,14 +1362,7 @@ exports[`Generating vite stats v5 {"format":"iife","expected":"iife"} matches th exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26679, - "name": "assets/index-BFgpG9Ne.js", - "normalized": "assets/index-*.js", - "size": 72423, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-umd", "bundler": { @@ -1566,14 +1447,7 @@ exports[`Generating vite stats v5 {"format":"umd","expected":"umd"} matches the exports[`Generating vite stats v5 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26668, - "name": "assets/index-Cn9uVtOh.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-system", "bundler": { @@ -1658,14 +1532,7 @@ exports[`Generating vite stats v5 {"format":"system","expected":"system"} matche exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26668, - "name": "assets/index-Cn9uVtOh.js", - "normalized": "assets/index-*.js", - "size": 72405, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v5-system", "bundler": { @@ -1750,14 +1617,7 @@ exports[`Generating vite stats v5 {"format":"systemjs","expected":"system"} matc exports[`Generating vite stats v5 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 27010, - "name": "assets/index-Cq3U4pkx.js", - "normalized": "assets/index-*.js", - "size": 73114, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { @@ -1842,14 +1702,7 @@ exports[`Generating vite stats v5 source maps are enabled does not include any s exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26666, - "name": "assets/index-BQsq0t7E.js", - "normalized": "assets/index-*.js", - "size": 72422, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-amd", "bundler": { @@ -1941,14 +1794,7 @@ exports[`Generating vite stats v6 {"format":"amd","expected":"amd"} matches the exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26679, - "name": "assets/index-C4o0PbSK.js", - "normalized": "assets/index-*.js", - "size": 72402, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-cjs", "bundler": { @@ -2040,14 +1886,7 @@ exports[`Generating vite stats v6 {"format":"cjs","expected":"cjs"} matches the exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26997, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73131, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-esm", "bundler": { @@ -2139,14 +1978,7 @@ exports[`Generating vite stats v6 {"format":"es","expected":"esm"} matches the s exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26997, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73131, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-esm", "bundler": { @@ -2238,14 +2070,7 @@ exports[`Generating vite stats v6 {"format":"esm","expected":"esm"} matches the exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26997, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73131, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-esm", "bundler": { @@ -2337,14 +2162,7 @@ exports[`Generating vite stats v6 {"format":"module","expected":"esm"} matches t exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26670, - "name": "assets/index-C2FevV0y.js", - "normalized": "assets/index-*.js", - "size": 72418, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-iife", "bundler": { @@ -2436,14 +2254,7 @@ exports[`Generating vite stats v6 {"format":"iife","expected":"iife"} matches th exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26707, - "name": "assets/index-CaYdJAO0.js", - "normalized": "assets/index-*.js", - "size": 72485, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-umd", "bundler": { @@ -2535,14 +2346,7 @@ exports[`Generating vite stats v6 {"format":"umd","expected":"umd"} matches the exports[`Generating vite stats v6 {"format":"system","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26699, - "name": "assets/index-CZb5YUA8.js", - "normalized": "assets/index-*.js", - "size": 72467, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-system", "bundler": { @@ -2634,14 +2438,7 @@ exports[`Generating vite stats v6 {"format":"system","expected":"system"} matche exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 26699, - "name": "assets/index-CZb5YUA8.js", - "normalized": "assets/index-*.js", - "size": 72467, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-vite-v6-system", "bundler": { @@ -2733,14 +2530,7 @@ exports[`Generating vite stats v6 {"format":"systemjs","expected":"system"} matc exports[`Generating vite stats v6 source maps are enabled does not include any source maps 1`] = ` { - "assets": [ - { - "gzipSize": 27028, - "name": "assets/index-Cc5984px.js", - "normalized": "assets/index-*.js", - "size": 73174, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { diff --git a/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts index e7bf6d8f..c8095ff4 100644 --- a/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/vite/vite-plugin.test.ts @@ -2,6 +2,7 @@ import { $ } from "bun"; import { describe, it, expect, afterEach, beforeEach } from "bun:test"; import { GenerateConfig } from "../../../scripts/gen-config"; +import { bundleStatsAssetsHint } from "../bundle-stats-snapshot-hints"; const vitePath = (version: number) => `node_modules/viteV${version}/bin/vite.js`; @@ -69,6 +70,7 @@ describe("Generating vite stats", () => { bundleName: expect.stringContaining( `test-vite-v${version}-${expected}`, ), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/vite-plugin"), }, @@ -118,6 +120,7 @@ describe("Generating vite stats", () => { duration: expect.any(Number), outputPath: expect.stringContaining(`/distV${version}`), bundleName: expect.not.stringContaining(".map"), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/vite-plugin"), }, 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 a6c1a2cf..0f7805e1 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 @@ -2,14 +2,7 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-push"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 25115, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-webpack-v5-array-push", "bundler": { @@ -78,14 +71,7 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-pus exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 25115, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-webpack-v5-cjs", "bundler": { @@ -154,14 +140,7 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches the snapshot 1`] = ` { - "assets": [ - { - "gzipSize": 25115, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringContaining "test-webpack-v5-esm", "bundler": { @@ -230,14 +209,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`] = ` { - "assets": [ - { - "gzipSize": 25115, - "name": "main-2c458a0c7e378af1ec1a.js", - "normalized": "main-*.js", - "size": 70959, - }, - ], + "assets": ExpectArrayContaining {}, "builtAt": Any, "bundleName": StringNotContaining ".map", "bundler": { diff --git a/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts b/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts index 5186fc87..01db3bf0 100644 --- a/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts +++ b/integration-tests/fixtures/generate-bundle-stats/webpack/webpack-plugin.test.ts @@ -2,6 +2,7 @@ import { $ } from "bun"; import { describe, it, expect, afterEach, beforeEach } from "bun:test"; import { GenerateConfig } from "../../../scripts/gen-config"; +import { bundleStatsAssetsHint } from "../bundle-stats-snapshot-hints"; const webpackPath = (version: number) => `node_modules/webpackV${version}/bin/webpack.js`; @@ -62,6 +63,7 @@ describe("Generating webpack stats", () => { bundleName: expect.stringContaining( `test-webpack-v${version}-${expected}`, ), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/webpack-plugin"), }, @@ -110,6 +112,7 @@ describe("Generating webpack stats", () => { duration: expect.any(Number), outputPath: expect.stringContaining(`/distV${version}`), bundleName: expect.not.stringContaining(".map"), + assets: bundleStatsAssetsHint(), plugin: { name: expect.stringMatching("@codecov/webpack-plugin"), }, diff --git a/integration-tests/package.json b/integration-tests/package.json index 0de481f4..41905c39 100644 --- a/integration-tests/package.json +++ b/integration-tests/package.json @@ -6,8 +6,8 @@ "license": "MIT", "type": "module", "scripts": { - "test:e2e": "bun test fixtures/*", - "test:e2e:update": "bun test fixtures/* --update-snapshots --max-concurrency=1", + "test:e2e": "bun test fixtures/* --timeout 120000 --max-concurrency=1", + "test:e2e:update": "bun test fixtures/* --update-snapshots --timeout 120000 --max-concurrency=1", "test:e2e:astro": "bun test fixtures/**/astro/*", "test:e2e:bundle-analyzer": "bun test fixtures/**/bundle-analyzer/*", "test:e2e:nextjs": "bun test fixtures/**/nextjs/*", From 909a2cccf318559b810343786eed74e3d2ceaccf Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Sat, 11 Apr 2026 05:48:09 +0900 Subject: [PATCH 5/5] revert: drop e2e timeout and max-concurrency script flags Made-with: Cursor --- integration-tests/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/package.json b/integration-tests/package.json index 41905c39..52d0d451 100644 --- a/integration-tests/package.json +++ b/integration-tests/package.json @@ -6,8 +6,8 @@ "license": "MIT", "type": "module", "scripts": { - "test:e2e": "bun test fixtures/* --timeout 120000 --max-concurrency=1", - "test:e2e:update": "bun test fixtures/* --update-snapshots --timeout 120000 --max-concurrency=1", + "test:e2e": "bun test fixtures/*", + "test:e2e:update": "bun test fixtures/* --update-snapshots", "test:e2e:astro": "bun test fixtures/**/astro/*", "test:e2e:bundle-analyzer": "bun test fixtures/**/bundle-analyzer/*", "test:e2e:nextjs": "bun test fixtures/**/nextjs/*",