Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cds-plugin-ui5): disable plugin for JEST test execution #906

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

petermuessig
Copy link
Member

As dynamic imports are only supported in JEST with Node.js 21 and the experimental flag: NODE_OPTIONS=--experimental-vm-modules we by default disable the cds-plugin-ui5 to avoid issues. It can be forcefully activated by CDS_PLUGIN_UI5_ACTIVE=true when testing in the environment as described above.

Fixes #901

As dynamic imports are only supported in JEST with Node.js 21
and the experimental flag: NODE_OPTIONS=--experimental-vm-modules
we by default disable the cds-plugin-ui5 to avoid issues. It
can be forcefully activated by CDS_PLUGIN_UI5_ACTIVE=true when
testing in the environment as described above.

Fixes #901
@petermuessig petermuessig merged commit b2b3c01 into main Oct 30, 2023
5 checks passed
@petermuessig petermuessig deleted the fix/CDSPluginJEST branch October 30, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jest test crash when using cds-plugin-ui5
1 participant