Incompatibility with newest @types/jest
See original GitHub issueBug
package
version: 0.11.2node
version: 10.15.3npm
(oryarn
) version: 6.4.1
What you did: npm i @types/jest@24.0.20
(latest)
What happened (please provide anything you think will help):
node_modules/@types/jest/index.d.ts:639:15 - error TS2428: All declarations of 'Matchers' must have identical type parameters.
639 interface Matchers<R, T> {
~~~~~~~~
node_modules/jest-extended/types/index.d.ts:5:13 - error TS2428: All declarations of 'Matchers' must have identical type parameters.
5 interface Matchers<R> {
~~~~~~~~
Reproduction repository (if possible): run the following two commands:
npm i @types/jest@24.0.20` jest-extended@0.11.2`
npm run build
Description: The definitions of the Matchers interface are out of sync
Possible solution: Fixing the definition of Matchers should fix this
Issue Analytics
- State:
- Created 4 years ago
- Reactions:20
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Cannot find name 'describe'. Do you need to install type ...
It was just some crazy bug fixed by some crazy workaround. Yes, and I added the latest jest , ts-jest and @types/jest to...
Read more >types/jest - npm
TypeScript definitions for Jest. Latest version: 29.2.4, last published: 25 days ago. Start using @types/jest in your project by running ...
Read more >Jest 28: Shedding weight and improving compatibility
Sharding of test run. Jest now includes a new --shard CLI option, contributed by Mario Nebl. It allows you to run parts of...
Read more >How to replace @types/jest with @jest/globals and jest-mock
I believe that it's always better to prefer official type definitions rather than unofficial DefinitelyTyped. And Jest v27 introduced new ...
Read more >@jest/types | Yarn - Package Manager
... installing the @types/jest package. Note that this is a third party library maintained at DefinitelyTyped and may not cover the latest Jest...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, just wondering if there’s any progress on getting this resolved. We want to add
jest-extended
to our project but will probably hold off until this is addressed, so we can keep up to date with jest types and not introduce workarounds. Thanks!Fixed released in https://www.npmjs.com/package/jest-extended/v/0.11.3