Skip to content

Releases: enzymejs/enzyme-matchers

6.0.2

20 Jun 14:11
Compare
Choose a tag to compare
  • Loosen jest-environment-enzyme react peerDependency to support testing other react versions. (@evocateur)

6.0.1

24 May 12:27
Compare
Choose a tag to compare
  • Fix jest-environment-enzyme to actually work with different react adapter versions. (@evocateur)

6.0.0

13 Mar 13:18
Compare
Choose a tag to compare

🛑 Breaking

  • jest-environment-enzyme now requires you to install your enzyme-adapter to your project root. (@blainekasten)
    • In 5.0.0 we wrongfully didn't require developers to do that hoping we could manage it internally.
    • This resulted in bloated dependencies, and peerDependency errors.
    • This fix requires a tiny bit more work from the user but is correct!

🍾 Improvements

  • Improve jasmine-enzymes error messages to not be contradicting. (@blainekasten)

5.0.3

08 Mar 14:06
Compare
Choose a tag to compare

5.0.2

07 Mar 18:56
Compare
Choose a tag to compare
  • Improve the scope of what files eslint-config-jest-enzyme affects. (@blainekasten)

5.0.1

07 Mar 13:44
Compare
Choose a tag to compare
  • Remove unnecassary rAF polyfill. (@SimenB)
  • Fix flow typing for toHaveProp. (@theneva)
  • Remove unused dependency from jest-environment-enzyme. (@SimenB)

5.0.0

06 Mar 18:23
Compare
Choose a tag to compare

🛑 Breaking

  • Removed toBePresent and toBeEmpty in favor of a new matcher toExist. (@blainekasten)

🚀 New Features

🍾 Improvements

  • Improved error message when using an enzyme-matcher assertion with a non-enzyme argument. (@blainekasten)
  • Improve the message output from toHaveClassName. (@theneva)
  • toBeChecked previously failed on undefined or null values, but is now fixed. (@pascalduez)

4.2.0

05 Feb 16:20
Compare
Choose a tag to compare
  • Handle an array of styles in the toHaveStyle assertion (@dennis-tra)

4.1.1

05 Feb 16:20
Compare
Choose a tag to compare

4.1.0

29 Jan 20:24
Compare
Choose a tag to compare
  • Internal CI fixes (@blainekasten)
  • Minor: toMatchElement ignores props by default now. This should not break anyones existing tests. If it does, please report it.
    If you want to test an element without matching the props, pass { ignoreProps: false } as a second argument. (@finnigantime)