Closed no2cturne closed 7 months ago
Hi, in the code you shared, you are not importing the Cloudscape preset. You'll need to add the Cloudscape preset in order to support the syntax used in Cloudscape's code. You can find more details in the "Advanced usage" section of the package readme.
Package version
2.0.22
Jest version
29.5.0
node-versions
18.13.0
npm-versions
9.8.1
Description
When using
@cloudscape-design/jest-preset
on a NodeJS/Typescript web project withts-jest
andbabel-jest
, I am still getting theSyntaxError: Unexpected token 'export'
error. Below is a copy of myjest.config.ts
file where I attempt to merge@cloudscape-design/jest-preset
with my settings forts-jest
andbabel-jest
.jest.config.ts
Source code
No response
Code of Conduct