jest-extended
jest-extended copied to clipboard
Mismatching interface for Matchers
Bug
packageversion: 0.11.5nodeversion: irrelevantnpm(oryarn) version: irrelevant
Relevant code or config
npm i [email protected] @types/[email protected] [email protected] -E
What you did:
Just install the application in a typescript app. The problem is a mismatching interface. There was a PR to update the Matchers interface from Matchers<R, T> to Matchers<R> https://github.com/jest-community/jest-extended/issues/234 But that's an outdated definition of the interface. If you look at https://www.npmjs.com/package/@types/jest definition version 24 (or latest, 25) and testing-library react https://www.npmjs.com/package/@testing-library/react version 4.2.4 you'll see the definition as Matchers<R, T>
Possible solution: revert changes from PR https://github.com/jest-community/jest-extended/issues/234
Workaround: install [email protected]
Since a month or so there is a permanent problem with this Matchers-definition. I don't get it why this interface is not part of jest-sources so that it can be used as a reference????