Tutorial by Examples

Alsatian is a unit testing framework written in TypeScript. It allows for usage of Test Cases, and outputs TAP-compliant markup. To use it, install it from npm: npm install alsatian --save-dev Then set up a test file: import { Expect, Test, TestCase } from "alsatian"; import { SomeM...
Install from npm chai, chai-immutable, and ts-node npm install --save-dev chai chai-immutable ts-node Install types for mocha and chai npm install --save-dev @types/mocha @types/chai Write simple test file: import {List, Set} from 'immutable'; import * as chai from 'cha...
tape is minimalistic JavaScript testing framework, it outputs TAP-compliant markup. To install tape using npm run command npm install --save-dev tape @types/tape To use tape with Typescript you need to install ts-node as global package, to do this run command npm install -g ts-node Now you ...
jest is painless JavaScript testing framework by Facebook, with ts-jest can be used to test TypeScript code. To install jest using npm run command npm install --save-dev jest @types/jest ts-jest typescript For ease of use install jest as global package npm install -g jest To make jest work ...

Page 1 of 1