Closed
Description
Hi,
After upgrading to 6.2.1
all my tests breaks:
.../node_modules/jest-styled-components/src/toHaveStyleRule.js:104
const normalizeOptions = ({ modifier, ...options }) =>
^^^
SyntaxError: Unexpected token ...
t ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)
at Object.<anonymous> (node_modules/jest-styled-components/src/index.js:1:114)
at Object.<anonymous> (src/setupTests.js:11:51)
And my setupTests.js:
import 'jest-enzyme';
import 'jest-styled-components';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
My package versions are:
"styled-components": "3.2.3",
"jest-enzyme": "6.1.2",
"react": "16.5.2",
Anyone has the same problem?
Thanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels