better-node-test

The CLI shortcut for node --test runner with TypeScript

27
2
27
1
JavaScript
public

Better Node Test

The CLI shortcut for node --test with:

  • TypeScript support.
  • -t shortcut to run special test.
  • --coverage to check test coverage.

Better Node Test CLI


  Made at Evil Martians, product consulting for developer tools.


Install

npm install --save-dev better-node-test

Usage

To run all tests with *.test.ts or *.test.js:

npx bnt

To run special test:

npx bnt ./test/request.test.ts -t 'uses HTTPS'

To run test coverage:

npx bnt --coverage 100 --coverage-exclude '**/*.test.*'

Use /* node:coverage ignore next 2 */ comments to ignore lines.

v0.3.3[beta]