Unit testing frameworks
There are many JavaScript unit testing frameworks available, and also a few that have been written in TypeScript. Two of the most popular JavaScript frameworks are Jasmine (http://jasmine.github.io/) and QUnit (http://qunitjs.com/). If you are writing node-based TypeScript code, then you might want to have a look at Mocha (https://github.com/mochajs/mocha/wiki).
Although there have been attempts at writing unit testing frameworks in TypeScript and for TypeScript, such as MaxUnit by KnowledgeLake, or tsUnit by Steve-Fenton, these frameworks never really took off. Their limited set of features compared to the battle-hardened, tried-and-tested frameworks meant that they had a lot of catching up to do, and were eventually ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access