-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
feat: support .mts .cts #1564
feat: support .mts .cts #1564
Conversation
Like all PRs, this will need tests before we can merge it. |
i don't know how make test for this |
A proper test needs to use the feature that you're adding. So if you're adding support for new file extensions, then the test needs to use the file extensions to prove that ts-node behaves the way you want it to behave. Most of ts-node's tests are very straightforward. They run the ts-node CLI and tell it to run code in a sample project. The code that spawns the CLI lives in Here's an example you can use as a starting point. This example tests something about symlinks. Obviously that's not relevant for your test. But the idea is the same: you have a sample project, and it gets invoked. |
This is gonna need more work:
And finally...
|
Might want to ship with #1361 so that |
Docs updates to go with this: Update moduleTypes jsdoc and markdown: they say ts cannot use mts and cts; this is wrong |
Rolling into #1694 |
#1007
#1414