Uh oh!
There was an error while loading. Please reload this page.
feat: support .mts .cts - #1564
Conversation
cspotcode
commented
Dec 10, 2021
Like all PRs, this will need tests before we can merge it. |
bluelovers
commented
Dec 11, 2021
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. |
cspotcode
commented
Jan 27, 2022
This is gonna need more work:
And finally...
|
cspotcode
commented
Jan 27, 2022
Might want to ship with #1361 so that |
cspotcode
commented
Feb 15, 2022
Docs updates to go with this: Update moduleTypes jsdoc and markdown: they say ts cannot use mts and cts; this is wrong |
cspotcode
commented
Mar 20, 2022
Rolling into #1694 |
#1007
#1414