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.

Incompatible with `expect` 27.5.1

See original GitHub issue

Hi,

In expect v27.5.1 (thus jest with same version), exports are mentioned in package.json, and jasmineUtils.js is not in it.

Here are the sample package.json:

{
  "name": "expect",
  "version": "27.5.1",
  "repository": {
    "type": "git",
    "url": "https://github.com/facebook/jest.git",
    "directory": "packages/expect"
  },
  "license": "MIT",
  "main": "./build/index.js",
  "types": "./build/index.d.ts",
  "exports": {
    ".": {
      "types": "./build/index.d.ts",
      "default": "./build/index.js"
    },
    "./package.json": "./package.json",
    "./build/utils": "./build/utils.js",
    "./build/matchers": "./build/matchers.js"
  },
}

Moreover, this file is removed from ^28.0.0 branch (currently in alpha).

Cheers !

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:12
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
Blafasel3commented, Jun 28, 2022

Any updates on this? There is an open PR using the same fix as jest-when. This issue blocks our whole Angular 13 Update because we have a lot of tests using jest-marbles 😉

10reactions
just-jebcommented, Jul 8, 2022

Can’t believe I missed this issue 🤦🏿‍♂️. Will provide the fix soon, stay tuned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No longer working with the latest version of Jest and TypeScript
The types of 'mock.results' are incompatible between these types. ... jest@27.5.1; jest-mock@27.5.1; jest-when@3.5.1; ts-node@10.7.0 ...
Read more >
The engine "node" is incompatible with this module
lock was telling yarn to expect a certain node version - in my case, 'Expected version ">=4 <=9". Got "16.1.0"' - so delete...
Read more >
Jest 27: New Defaults for Jest, 2021 edition
In the Jest 26 blog post about a year ago, we announced that after two major releases with few breaking changes, Jest 27...
Read more >
jest - npm
Jest. Delightful JavaScript Testing. ‍ Developer Ready: Complete and ready to set-up JavaScript testing solution.
Read more >
error jest-matcher-utils@27.5.1: The engine “node“ is ...
yarn add 安装包,报错:error expect@28.1.3: The engine "node" is incompatible with this module. nuxt-jest-puppeteer::rocket:Nuxt.js零配置测试, ...
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