zombienet
zombienet copied to clipboard
Add support for typescript compilation on the fly for tests
Following where this appeared in #309 's comment by [@AuroraLantean[(https://github.com/AuroraLantean), we should add TS support for tests.
This could be implemented, based on extension and use tsc
to build on the fly
The idea behind it (in order to be also backward compatible) comes down to:
User is able to | Program reacts with |
a) Add .js extension | As it works currently (no removal of `.js`) |
b) Add .ts extension | Generates .js and runs the test on the .js file - at the end it removes the .js file that was created |
c) provides filename without extension | Runs (b), if not found runs (a), if non of the two found throws error |
This makes it also backward compatible
cc @pepoviola
The idea behind it (in order to be also backward compatible) comes down to:
User is able to Program reacts with a) Add .js extension As it works currently (no removal of
.js
) b) Add .ts extension Generates .js and runs the test on the .js file - at the end it removes the .js file that was created c) provides filename without extension Runs (b), if not found runs (a), if non of the two found throws error This makes it also backward compatiblecc @pepoviola
Hi @wirednkod, yes. Make sense to me 👍 .
Thanks!