Unit testing using Typescript, Mocha, Chai, Sinon, and Karma

Avatar

Pam

In this post, Premier Developer consultant Wael Kdouh outlines how to set up a unit testing project using Typescript, Mocha, Chai, Sinon and Karma.


I was trying to setup a project for unit testing using Typescript, Mocha, Chai, Sinon, and Karma and I quickly realized that there were so many moving parts that made it a bit challenging to setup the project. Here are the detailed steps for successfully creating a JavaScript unit testing project using the aforementioned technologies. TL/DR:  The code is available on GitHub.

Continue reading on Wael’s blog

Avatar
Pam Lahoud

Follow Pam   

0 comments

    Leave a comment