Skip to content

Jest version 29 is not supported #19

@vitonsky

Description

@vitonsky

Google search terms

jest-chrome is not work for jest 29

Describe the bug

I have jest 29.3.1 and i try to use jest-chrome to test my browser extension https://github.com/translate-tools/linguist

But i can't even install jest-chrome, because its packages.json requires a jest version jest@"^26.0.1 || ^27.0.0"

How do we reproduce?

  • Run npm i -D jest@29.3.1
  • Run npm i -D jest-chrome

Expected behavior

Packages installed successfully

Actual behavior

We got an error about incompatible versions

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: browser-addon@4.0.3
npm ERR! Found: jest@29.3.1
npm ERR! node_modules/jest
npm ERR!   dev jest@"^29.3.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jest@"^26.0.1 || ^27.0.0" from jest-chrome@0.8.0
npm ERR! node_modules/jest-chrome
npm ERR!   dev jest-chrome@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Screenshots

Please complete the following information:

  • Library Version: 0.8.0
  • Operating System: ubuntu
  • Browser: firefox
  • Node Version: v14.18.1

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions