Introduction
I am a huge fan of TDD, already wrote a couple of articles in this topic. In one of my recent projects I used Angular as a ...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for this post, helped me a lot
Thanks, this got me up and running with my TS tests. Mocha recommends against using arrow functions for tests (mochajs.org/#arrow-functions). As I'm only new at this, is there a reason to use them in this context?
Thanks for your note! You are right, it is discouraged to use arrow functions in Mocha, however if you don't need to access the Mocha context (aka this), it works fine.
No special reason to use them here, just a shorter syntax :-)
Very straightforward and easy to follow! Thanks for this post @daniel_werner !
You are welcome! If you are interested to learn more on testing with Mocha, check out my blog post series on the topic here: danielwerner.dev/category/testing-...
Is it possible to use babel/register instead of ts-node/register? Not really sure what the difference is between the two.
Thank you, i was just now refactoring the suit tests to typescript and i was wondering how to migrate this. Epic :)
👍
Good explanation helped me quick start testing with mocha and typescript .Thank you!
Awesome! This got me going in literally less than 2 minutes. Thanks!
This saved me immensely. Thanks a lot