question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with newest @types/jest

See original GitHub issue

Bug

  • package version: 0.11.2
  • node version: 10.15.3
  • npm (or yarn) 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:closed
  • Created 4 years ago
  • Reactions:20
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
scottbrassfieldcommented, Nov 15, 2019

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!

2reactions
mattphillipscommented, Jan 21, 2020
Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found