I’ve created this small example repository on Github to showcase a simple TypeScript project various tasks like:
- Unit tests with mocha
- Sourcemaps for your tests
- With this you’ll be able to see the line number of your typescript source code in mocha’s output.
- Watch, compile, test
- While it sounds easy, I’ve had a hard time finding a correct way to set this up.
Here is the gist of it:
The whole example project live here