better-node-test icon indicating copy to clipboard operation
better-node-test copied to clipboard

The CLI shortcut for node --test runner with TypeScript

Better Node Test

The CLI shortcut for node --test with:

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

Better Node Test CLI


  Made in Evil Martians, product consulting for developer tools.


Usage

Install CLI:

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

For TypeScript you will also need tsx (or you can use tsm):

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

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'