Skip to content

[pull] next from storybookjs:next#342

Merged
pull[bot] merged 5 commits into
GesuBackups:nextfrom
storybookjs:next
Jun 5, 2025
Merged

[pull] next from storybookjs:next#342
pull[bot] merged 5 commits into
GesuBackups:nextfrom
storybookjs:next

Conversation

@pull

@pull pull Bot commented Jun 5, 2025

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

ndelangen and others added 5 commits June 4, 2025 13:54
The upgrade to Storybook 9 broke interactions using expect(...).toSatisfy(...)
due to a mismatch between TypeScript types and Chai implementation. This fix:

1. Updates @vitest/expect and @vitest/spy to v3.2.1 which includes proper
   TypeScript types for Chai matchers
2. Adds @types/chai and @types/deep-eql dependencies for better type support
3. Extends expect with customMatchers from @vitest/expect to properly
   implement the toSatisfy matcher

This resolves the error "Invalid Chai property: toSatisfy" while maintaining
TypeScript type safety for the Assertion<HTMLElement> interface.

Fixes #31643
… versions

This commit removes outdated dependencies such as @types/chai and @types/deep-eql, and introduces new versions for @vitest/expect, @vitest/spy, and @vitest/pretty-format. The changes ensure compatibility with the latest TypeScript types and improve overall dependency management.
…stom-matchers

Testing: Fix `toSatisfy`-matcher implementation
@pull pull Bot added the ⤵️ pull label Jun 5, 2025
@pull pull Bot merged commit 5e6b94c into GesuBackups:next Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants