jest-extended icon indicating copy to clipboard operation
jest-extended copied to clipboard

Mismatching interface for Matchers

Open gasparsigma opened this issue 5 years ago • 1 comments

Bug

  • package version: 0.11.5
  • node version: irrelevant
  • npm (or yarn) 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]

gasparsigma avatar Feb 25 '20 00:02 gasparsigma

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????

MikeMitterer avatar Mar 04 '20 12:03 MikeMitterer