You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
Trying to run tests with jest-electron-runner and Jest 27 results in errors like this:
● Test suite failed to run
● Test suite failed to run
TypeError: Cannot read property 'bind' of undefined
at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:30:56)
Jest 27 changed the API of Jest Environments. I guess it has something to do with this. The runScript method is not used anymore. Instead the logic of it is executed directly in the runtime so looks like the environment can't override this behavior anymore. Not sure if this is the reason for the error above. Maybe more stuff is broken now.
The text was updated successfully, but these errors were encountered:
It appears that runScript was removed in favor of getVmContext (see: jestjs/jest#11155). The same author explains what getVmContext is / does here: jestjs/jest#9428.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Trying to run tests with jest-electron-runner and Jest 27 results in errors like this:
Jest 27 changed the API of Jest Environments. I guess it has something to do with this. The
runScript
method is not used anymore. Instead the logic of it is executed directly in the runtime so looks like the environment can't override this behavior anymore. Not sure if this is the reason for the error above. Maybe more stuff is broken now.The text was updated successfully, but these errors were encountered: