I have a problem with react, jest and enzyme configuration.
So basically I have installed dependencies like jest, jest-cli, babel-jest, enzyme and enzyme-adapter-react-16. I also have setupTest.js which looks like this:
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
But I don't know why I am still getting an error Unexpected token import because of this line: import { configure } from 'enzyme'
Any solutions ?
npm testand my script looks like"test": "jest"- SimpleCoder