v1.2.0 - Vitest, plus some new matchers #6
EskiMojo14
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This minor release adds Vitest support, and some new matchers.
Vitest
This release adds support for Vitest, by adding an explicit dependency on
jest-matcher-utilsfor utilities provided by Jest but not Vitest.See the README for the setup guide.
New matchers
expect.typeOfThis asymmetric matcher checks that a given value has a given
typeof.expect.arrayContainingOnlyThis asymmetric matcher checks that a given array only contains values from an expected array.
Values can be duplicate or omitted, but all values present must match.
This is different to
expect.arrayContaining, which checks that all expected values are present and allows for other values.expect.objectContainingOnlyThis asymmetric matcher checks that a given object only contains matching keys from an expected object.
Keys can be omitted, but keys present must match.
This is different to
expect.objectContaining, which checks that all expected keys are present and allows for other keys.What's Changed
Full Changelog: v1.1.1...v1.2.0
This discussion was created from the release v1.2.0 - Vitest, plus some new matchers.
Beta Was this translation helpful? Give feedback.
All reactions