Re-evaluate usage of Jest
as test-runner
#502
Labels
Studio Core Team
Opened by a member of the Studio core team
Type: Maintenance
DevOps, maintenance, admin works to do with the repository
Milestone
jest does not fully support ESM - See jestjs/jest#9430. When we upgrade and use
ESM
support, we can:main
field inpackage.json
and letbabel-jest
handle the transform for these ESM modules - There is currently a problem with this - Support package exports injest-resolve
jestjs/jest#9771lodash-es
- Merge lodash-es into lodash package lodash/lodash#5107uuid
does not fit well withjest-resolve
- fix: addbrowser
condition to package.json uuidjs/uuid#616ESM
because of all the problems in - Meta: Native support for ES Modules jestjs/jest#9430 (comment) - mainly to do with usage ofjest.mock
andjest.requiresActual
which are only used inGrammarRoundtrip
tests right now. We will be able to get rid of these by using process env variable hack (e.g.process.env.TEST_GRAMMAR_ROUNDTRIP
)This is extracted from the umbrella tracker for
dependencies
#83We will close this once we can fully adopt
ESM
in our usage withJest
and make necessary adjustments in the codebaseUPDATED:
We have adopted ESM
exports
style, but we haven't fully immerse inESM
mode yet as it seems fromNode
side there are quite a number of stabilization to be done. And holes to patch, such as problems withuuid
,lodash-es
as mentioned above, so I will keep this PR open for now.The text was updated successfully, but these errors were encountered: