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.
Better Node Test is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.
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.