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

openapi-framework: dynamic import breaks jest transpile #909

Open
coryasilva opened this issue Sep 10, 2024 · 1 comment
Open

openapi-framework: dynamic import breaks jest transpile #909

coryasilva opened this issue Sep 10, 2024 · 1 comment

Comments

@coryasilva
Copy link

coryasilva commented Sep 10, 2024

When using jest this code gets transpiled to require and the file URL syntax of the import is not supported and breaks the testing environment.

Why not just use jest's --experimental-vm-modules flag? Glad you asked. Because of this jestjs/jest#11434 (comment) which is caused by this nodejs/node#37648 which is ultimately caused by this v8 bug

@amp5208
Copy link

amp5208 commented Oct 2, 2024

confirmed that this is a problem when implementing this in backstage, as well. here is the PR related to the fix, that will need to be pulled in: #908

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

No branches or pull requests

2 participants