Skip to content

Conversation

@mcous
Copy link
Owner

@mcous mcous commented Jun 3, 2025

Closes #22

Nesting asymmetric matchers will still throw a type error, but Vitest's deep matcher type added in vitest-dev/vitest#7016 seems to be experiencing some growing pains. I will wait for the dust to settle before improving the typing on our end further, but for now, this should unblock most matcher usage.

Thanks to @RylanBueckert-Broadsign for the report and @matt-smarsh for the fix!

@mcous mcous changed the title fix(types): accept asymmetric matchers are stub arguments fix(types): accept asymmetric matchers in stub arguments Jun 3, 2025
@mcous mcous merged commit 8f6d059 into main Jun 3, 2025
12 checks passed
@mcous mcous deleted the fix/asymmetric-matcher-types branch June 3, 2025 14:10
@matt-smarsh
Copy link

Thanks for such a quick turnaround!

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.

Some asymmetric matchers results in type error when used with vitest 3.2.0

3 participants