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
Support nodejs experimental-modules #1651
Comments
After looking, I think it is part of the jasmine-npm package. I opened a bug there: |
Reopened to include the management of the stacktrace in core |
where is the pr? |
Is there any workaround actually to use jasmine with node v14.3 and ESM imports? |
jasmine/jasmine-npm#150 (comment) :
or
|
Closing this issues as the relevant issue on jasmine-npm has been resolved and merged into main there to be included in the next release. |
Are you creating an issue in the correct repository?
The "bug" (unwanted feature) is at jasmine.js#89.5
Expected Behavior
We should be able to use the "ecmascript" experimental modules of nodejs (https://nodejs.org/dist/latest-v11.x/docs/api/esm.html),
Current Behavior
we receive an error:
Possible Solution
Jasmine should use "import" instead of "require" when loading esm modules. But that is not that easy, since "import" is asynchronous, while require is synchronous.
Suite that reproduces the behavior (for bugs)
launch nearly as usual:
Context
This is blocking to use jasmine in this new (experimental) context.
Your Environment
The text was updated successfully, but these errors were encountered: