v1.3.0 - expect.oneOf, expect.enum, and .toBeEnum
This minor release:
- adds
expect.oneOf([1,2,3])
to asymmetrically match against a number of items - each is compared using deep equality. - adds
toBeEnum(Enum)
andexpect.enum(Enum)
matchers to check a value is from a given enum- works with both Typescript native enums and "const object" style enums
What's Changed
- Add expect.oneOf([1, 2, 3]) by @EskiMojo14 in #7
- Add toBeEnum and expect.ofEnum/enum matchers by @EskiMojo14 in #8
Full Changelog: v1.2.0...v1.3.0