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
Since upgrading to react-native 0.56.0, I can no longer run tests on windows. Every test file fails with the error below
FAIL startup/App.spec.js
● Test suite failed to run
Cannot find module 'setupDevtools' from 'setup.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
at Object. (node_modules/react-native/jest/setup.js:33:6)
Jest Config
I think everything below the `setupFiles` was stuff I added that made no effective difference.
Tried many changes to my jest config based on the suggestions above
Tried throwing away my yarn.lock file so it would grab the latest version of everything subject to package.json
The repo below and snippets above are vastly stripped down from the original versions that I started with
Tried installing babel-core@7.0.0-bridge.0 as a dev dependency since yarn complains about it being a missing peer dependency
Things that affect the error:
If I remove the transform section of the jest config then the setup.js error goes away, but the "Plugin 0" error occurs (on macOs too):
Plugin 0 specified in "/Users/me/dev/myApp/node_modules/babel-preset-react-native/index.js" provided an invalid property of "default" (While processing preset: "...")
If I add the following to my jest config, the error changes to the error below
rootDir: '.',
roots: [
'<rootDir>'
],
FAIL startup/App.spec.js
● Test suite failed to run
Reference Error babelHelpers is not defined
Environment
node version 8.11.3 (and other windows systems have older yarn and node versions)
Description
Since upgrading to react-native 0.56.0, I can no longer run tests on windows. Every test file fails with the error below
Jest Config
I think everything below the `setupFiles` was stuff I added that made no effective difference.Package.json
What I've already tried
Things that affect the error:
If I remove the
transformsection of the jest config then the setup.js error goes away, but the "Plugin 0" error occurs (on macOs too):If I add the following to my jest config, the error changes to the error below
Reproducible Demo
See: this repo for a reproducible (on windows only) example.