When running tests in Jest (with the following dependencies: jest, babel-jest, react-test-renderer), kept getting the following error:
Test suite failed to run
TypeError: require(...).evalVMScript is not a function
at JSDOMEnvironment.runScript (node_modules/jest-environment-jsdom/build/index.js:56:31)
This exact issue popped up in: https://github.com/jonboiser/wallaby-jest-problem. The author was able to figure out this being a problem potentially with conflicting issues of JSDOM.
If you're using the react test renderer, you don't need JSDOM. Run jest tests with:
jest --env=node