E
E
eifory2021-05-04 12:14:38
typescript
eifory, 2021-05-04 12:14:38

How to test ts files that are not modules?

There is a strict directory structure that contains ts files containing function declarations inside.
You need to test the code.
You can add the word export, import in tests, and before pushing, post-process and remove export from the es5-compiled version of the file. I found this package https://github.com/tonyhallett/typescript-remove-e... .
Are there more standard options, like using assemblers?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question