| Start |
|---|
| tape tape (opens new window) is minimalistic JavaScript testing framework, it outputs TAP-compliant (opens new window) markup. To install To use Now you are ready to write your first test To execute test run command In output you should see Good job, you just ran your TypeScript test. Run multiple test files You can run multiple test files at once using path wildcards.
To execute all Typescript tests in |
| jest (ts-jest) jest (opens new window) is painless JavaScript testing framework by Facebook, with ts-jest (opens new window) can be used to test TypeScript code. To install jest using npm run command For ease of use install To make Now Example test could look like To execute test run In output you should see Code coverage
To use code coverage with TypeScript you need to add another configuration line to To run tests with generation of coverage report run If used with our sample fizz buzz you should see
|
| Alsatian Alsatian (opens new window) is a unit testing framework written in TypeScript. It allows for usage of Test Cases, and outputs TAP-compliant (opens new window) markup. To use it, install it from Then set up a test file: For a full documentation, see alsatian's GitHub repo (opens new window). |
chai-immutable plugin |
Read Article
https://develop.horje.com/learn/1434/reference