Clarity 6.0.0 with Angular and Jest #69
Unanswered
grahamford
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried updating a project to version 6.0.0 but tests are failing with the message
node_modules/@cds/core/internal/utils/array.js:1:642: ERROR: Transforming async generator functions to the configured target environment ("es2015") is not supported yet
My test environment uses
Jest
withts-jest
to compile down to JavaScript. However, the maximum compilation target thatts-jest
will accept isES2016
because that's all Angular supports. (See https://github.com/thymikee/jest-preset-angular/blob/8681882f466ccbd1d2ee7768cc83cf1335224abc/src/config/ng-jest-config.ts#L39).ts-jest
usesesbuild
to bundle files and that only supports async generator functions when the target is set toES2018
or later.Has anyone got a workaround for this? Otherwise it looks as though I'm stuck on version 5 of Clarity for the moment.
Beta Was this translation helpful? Give feedback.
All reactions