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
-
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-utils
for utilities provided by Jest but not Vitest.See the README for the setup guide.
New matchers
expect.typeOf
This asymmetric matcher checks that a given value has a given
typeof
.expect.arrayContainingOnly
This 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.objectContainingOnly
This 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