Following the docs for using with babel 7 did not work. The babel config was ignored so it barfed on import.
Follow the jest documentation for babel 7.
I expect jest to work with babel 7.
https://github.com/dadamssg/jest-babel-7
npx envinfo --preset jestPaste the results here:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 8.11.1 - ~/.nvm/versions/node/v8.11.1/bin/node
Yarn: 1.6.0 - /usr/local/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.1/bin/npm
npmPackages:
jest: ^23.6.0 => 23.6.0
Please follow the guide and use babel.config.js instead of .babelrc to make Babel transpile code inside node_modules
@thymikee I tried that initially. I updated the repo. It now uses babel.config.js and still does not work.
Finally figured it out. It appears that {modules: false} in my babel.config.js was the problem.
Most helpful comment
Finally figured it out. It appears that
{modules: false}in mybabel.config.jswas the problem.