Skip to content

chore(deps-dev): bump the vitest group across 1 directory with 2 updates - #5655

Merged
svozza merged 4 commits into
mainfrom
dependabot/npm_and_yarn/main/vitest-d440b5915d
Sep 11, 2026
Merged

chore(deps-dev): bump the vitest group across 1 directory with 2 updates#5655
svozza merged 4 commits into
mainfrom
dependabot/npm_and_yarn/main/vitest-d440b5915d

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown
Contributor

Bumps the vitest group with 2 updates in the / directory: @vitest/coverage-v8 and vitest.

Updates @vitest/coverage-v8 from 4.1.11 to 5.0.0

Release notes

Sourced from @​vitest/coverage-v8's releases.

v5.0.0

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes

... (truncated)

Commits

Updates vitest from 4.1.11 to 5.0.0

Release notes

Sourced from vitest's releases.

v5.0.0

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes

... (truncated)

Commits
  • f441c6f chore: release v5.0.0 (#11130)
  • d46a747 fix: treat test.describe as a suite during static collection (#11128)
  • 584cf30 fix: add a warning if inline project has duplicate plugins due to unexpected ...
  • f08ce4b fix: apply queued mocks from doMock() in queue order (fixes #10706) (#11127)
  • 897f51f chore: release v5.0.0-rc.4 (#11107)
  • 1339b06 chore(deps): update all non-major dependencies (#11104)
  • 51e9494 feat!: parse files statically in vitest list by default (#11088)
  • 2122ffd fix: propagate --maxWorkers to projects (#11102)
  • dc10f5f fix(browser): report the action error when a task times out (#11101)
  • d4fe198 feat: promote clearCache out of experimental (#11086)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code labels Sep 7, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/main/vitest-d440b5915d branch 5 times, most recently from 9cb66e1 to 41e2a5f Compare September 7, 2026 15:18
@svozza

svozza commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The check-docs failure here is not flaky, it's a genuine type-check break caused by the vitest 4 → 5 major bump. The build of @aws-lambda-powertools/testing-utils fails on packages/testing/src/setupEnv.ts with two errors:

  1. TS2428: All declarations of 'Assertion' must have identical type parameters (line 237)
    vitest 5 changed the Assertion interface from Assertion<T = any> to Assertion<R extends void | Promise<void> = void, T = unknown> (same change for Matchers). Our module augmentation still uses the single-parameter form, so the declaration merge is rejected. This part is ours to fix.

  2. TS2322: toReceiveCommandWith ... is not assignable to type 'RawMatcherFn<MatcherState, any[]>' (line 7)
    vitest 5 no longer depends on a separate @vitest/expect package; the expect types are bundled into vitest itself. However aws-sdk-client-mock-vitest@7.1.0 has a hard dependency on @vitest/expect@^4.1.0, so the lockfile in this PR still installs @vitest/expect@4.1.11 alongside vitest 5. The matchers exported by aws-sdk-client-mock-vitest are typed against the 4.x MatcherState, while expect.extend in vitest 5 expects its own bundled copy, and the two are not assignable to each other.

The second error is upstream: aws-sdk-client-mock-vitest has not released a version compatible with vitest 5 yet (latest is 7.1.0, and there is no open issue or PR for vitest 5 support in https://github.com/stschulte/aws-sdk-client-mock-vitest). We could paper over it with an npm override or a cast, but that would be fragile.

We'll hold this bump until aws-sdk-client-mock-vitest ships vitest 5 support, then update the Assertion augmentation in setupEnv.ts alongside it.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/main/vitest-d440b5915d branch 8 times, most recently from a5c10be to d4b2673 Compare September 10, 2026 13:13
Bumps the vitest group with 2 updates in the / directory: [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@vitest/coverage-v8` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/coverage-v8)

Updates `vitest` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vitest
- dependency-name: vitest
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vitest
...

Signed-off-by: dependabot[bot] <support@github.com>
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/XS PR between 0-9 LOC label Sep 11, 2026
vitest 5 changes Assertion<T> to Assertion<R, T> and stops exporting
the Procedure type that a bare vi.fn() infers, so exported mock helpers
need an explicit Mock annotation.
vitest 5 fails tests whose .resolves/.rejects assertions are not awaited
and no longer treats a thrown string as equal to an Error with the same
message.
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added size/M PR between 30-99 LOC and removed size/XS PR between 0-9 LOC labels Sep 11, 2026
@svozza

svozza commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

The aws-sdk-client-mock-vitest dependency has been removed and the type error on our side has been fixed. Also had to fix a few issues around async expect statements.

@svozza
svozza merged commit 292823c into main Sep 11, 2026
43 checks passed
@svozza
svozza deleted the dependabot/npm_and_yarn/main/vitest-d440b5915d branch September 11, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code size/M PR between 30-99 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants