Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stopped working with jest 25.4.0 #6

Closed
regevbr opened this issue Apr 20, 2020 · 3 comments
Closed

stopped working with jest 25.4.0 #6

regevbr opened this issue Apr 20, 2020 · 3 comments

Comments

@regevbr
Copy link

regevbr commented Apr 20, 2020

When using jest 25, the following error occurs:

    TypeError: runtime.unstable_shouldLoadAsEsm is not a function

      at jasmine2 (node_modules/jest-config/node_modules/jest-jasmine2/build/index.js:188:25)

This is because the runner is using old jest-runner.
I think the best solution is to put the jest-runner as peer dependency with no semver restrictions

@Narretz
Copy link

Narretz commented Feb 25, 2021

The quick solution is to copy the index.js file to your project, and point the runner config entry to it.
I've tested it with jest 26.6.3 and it works. Just make sure you have all jest related packages at the same version.

@jessevdp
Copy link

jest-runner should probably be listed as a peer dependency right?

I've been unraveling this thread... playwright-community/jest-playwright#665. Currently having issues with Jest 27, and the v24 that this package specifies.

(Or maybe remove the restraint on the major version?)

@gabrieli
Copy link
Owner

There's a new version 1.2.0 that should fix this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants