Enzyme Matchers Versions Save

Jasmine/Jest assertions for enzyme

v7.1.0

4 years ago
  • toContainMatchingElement and toContainMatchingElements now can take a list of Enzyme wrappers. (@GreenGremlin)
  • Improved messaging for toContainMatchingElement and toContainMatchingElements. (@GreenGremlin)

v7.0.2

4 years ago
  • Update a security advisory within dependencies. (@tgaff)
  • Various package improvements. (@goldensunliu, @mulholio, @kahwee, @tgaff)
  • Fixing messaging for toHaveState and toHaveProp. (@GreenGremlin)

v7.0.1

4 years ago
  • Fix a jest integration with toContainMatchingElement not returning an explicit boolean. (@blainekasten)

v6.1.2

5 years ago
  • Fix duplicate typescript definition. (@GreenGremelin)

v7.0.0

5 years ago

🛑 Breaking

  • Renamed toHaveTagName to toHaveDisplayName (GreenGremlin)
    • This was done because Tag name indicates an HTML entity, but the matcher works with React Components which uses an internalProp displayName
    • When updating to 7.0.0 you should be able to just do a simple search and replace for this matcher across your codebase.

🍾 Improvements

  • Add support for unboxed properties for toMatchElement. (@blainekasten)
  • Improve documentation for the entire repo. (@blainekasten)
  • Improve internal tests.

v6.1.1

5 years ago

Failed Release

v6.1.0

5 years ago
  • Added 3 new matchers! toContainMatchingElement, toContainMatchingElements and toContainMatchingElements (@GreenGremlin)

v6.0.5

5 years ago
  • Fix typescript definitions for toMatchElement options argument. (@mayhewluke)

v6.0.4

5 years ago
  • Fix global typescript definitions for jest-environment-enzyme. (@vkrol)

v6.0.3

5 years ago
  • Add global typescript definitions for jest-environment-enzyme. (@astorije)
  • Allow multiline strings for toHaveHTML. (@astorije)
  • Print local error messages when jest-environment-enzyme has an issue. (@h.ayabe)