The CLI shortcut for node --test runner with TypeScript
The CLI shortcut for node --test with:
-t shortcut to run special test.--coverage to check test coverage.
Made at Evil Martians, product consulting for developer tools.
npm install --save-dev better-node-test
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.