Closed lafada closed 3 years ago
I don't know the actual issue behind this. I am trying to fix this
Please have a look at these links, this may help you to skip the error
https://github.com/facebook/jest/issues/9395 https://github.com/facebook/jest/issues/9292 https://stackoverflow.com/questions/55794280/jest-fails-with-unexpected-token-on-import-statement
I have to use
react-cron-generator
to display cron options. When I add them its fails my test cases.I created react app using
create-react-app
package.Then I added
eslint
and other needed package. after that mypackage.json
is as below.Then I run my
yarn test
it works fine.But when I try to include
react-cron-generator
it start failing, I just addedimport Cron from 'react-cron-generator'
.If filed on
import
Seems like issue is at https://github.com/sojinantony01/react-cron-generator/blob/master/src/lib/index.js#L1, but is there any way to ignore it ?