Skip to content

v1.3.0 - expect.oneOf, expect.enum, and .toBeEnum

Compare
Choose a tag to compare
@EskiMojo14 EskiMojo14 released this 20 Feb 21:44
· 104 commits to main since this release

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) and expect.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

Full Changelog: v1.2.0...v1.3.0