Issue with jest "Unexpected token 'export'"

Viewed 15

I have a problem with the following error when I run my jest tests In a project we are using a package which underwater uses the D3 library.

When I run a test which uses that component I get the following message:

node_modules\d3-shape\src\index.js:1

{export {defauls as arc} from "./arc.js"}


SyntaxError: Unexpected token 'export'

I have tried updating my jest.config and changing the transformIgnorePatterns but not having any success

0 Answers
Related