I am trying to run tests with jest for React in a rails 5.2.4 application with yarn jest I get:
Unknown option: .0. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
for every test.js extension
I have in babel.config.js:
return { presets: [ isTestEnv && [ ['@babel/preset-env', '@babel/preset-react'], { targets: { node: 'current' }, modules: false }, 'jest' ],
1.4m articles
1.4m replys
5 comments
57.0k users