-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add support for tests written with ES modules #684
Comments
This looks like you're using I think this support is in node 13 but you have to enable it. Details can be found in node's docshttps://nodejs.org/api/esm.html#esm_ecmascript_modules Let me know if this works for you or if you need any further help? :) |
Poking around a bit more, I guess the gist of my issue is that
|
Ah OK then, looks like we may not have full support for esm as things stand. I'm going to change this issues name to reflect this if that's ok? Is this a blocker for you or can you use commonks for now? |
Since it looks like you folks are using ts-node, it's not clear if they ever solidified support for ES modules. |
Yes I think you're likely correct, may be worth seeing if there is at least a temporary work around with node 14 on the horizon and this becoming a more popular module system if we can't get support from ts-node. |
No worries about the ticket! I have a workaround, I'm just bummed that the ecosystem support for modules is so spotty after a couple of years of availability. |
Yep, although I guess because of a combination of it being behind an experimental flag for most of that time and dependencies often having an impact on using functionality / backwards compatibility we can have awkward transitions sometimes. I've added this to our next milestone though so this will get looked at. If you have some time and inclination I would gratefully received aPR for it :) |
Might take a look at what it would take! |
An easy solution to this problem is to install the |
Nice tip @mwgamble :) I'll give this a test with some other changes for 4.0.0 and add this as a recommendation with some props to you! 👍 |
Alsatian 3.2.1
Basic setup:
Error:
The text was updated successfully, but these errors were encountered: