enzymejs / enzyme-matchers

Jasmine/Jest assertions for enzyme
MIT License
892 stars 116 forks source link

Update jests "Matchers" interface #319

Closed tobilen closed 4 years ago

tobilen commented 4 years ago

closes https://github.com/FormidableLabs/enzyme-matchers/issues/318

the Matchers type of definitelytyped's jest package have been updated with https://github.com/DefinitelyTyped/DefinitelyTyped/pull/39243, which causes a compilation error since the interfaces don't match anymore.

See: https://github.com/testing-library/jest-dom/issues/152 or https://github.com/styled-components/jest-styled-components/pull/270

This PR changes the type to match the new one.

tobilen commented 4 years ago

as far as i can tell, for custom matchers passed to toMatchSnapshot assertions. not a 100% on that though