Skip to content

Conversation

@MrSquaare
Copy link
Contributor

@MrSquaare MrSquaare commented Aug 25, 2025

What:

  • Add support for Vitest 3.2.0+ for extended matchers
  • Update Assertion interface (Vitest < 3.2.0) to use generic type

Why: Vitest 3.2.0+ changed how type definitions for extended matchers are defined

See https://vitest.dev/guide/extending-matchers

How: Adding the type definition for Vitest 3.2.0+ while keeping type definitions for Vitest < 3.2.0

Checklist:

  • Tests (N/A)
  • TypeScript definitions updated
  • Ready to be merged

@MrSquaare MrSquaare changed the title fix: support Vitest 3.2.0+ fix: support Vitest 3.2.0+, use generic for assertion interface Aug 25, 2025
@crutchcorn
Copy link
Owner

Neat, thanks!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/cli-testing-library@41

commit: 7e724f1

@crutchcorn crutchcorn merged commit bc63bd3 into crutchcorn:main Sep 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants