ljmotta commented on issue #467: URL: https://github.com/apache/incubator-kie-issues/issues/467#issuecomment-2150672445
Some `jest` tests depends on `prettier`. The `prettier` `3.x` version are built using ESM, meaning that `jest` should be also use ESM on those cases. To make `jest` emmit ESM we need to use the `--experimental-vm-modules` `node` flag, the `ts-jest` version `27.x`+ [1], and check other transform plugins to emmit ESM. `prettier` version `3.x.x` will be officially supported on `jest` version `30.x`, which is still in alpha [2][3][4]. [1] https://kulshekhar.github.io/ts-jest/docs/26.5/guides/esm-support [2] https://github.com/prettier/prettier/issues/15769 [3] https://github.com/prettier/prettier/issues/15098 [4] https://github.com/jestjs/jest/issues/13495 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
