Better Node Test
The CLI shortcut for node --test
with:
- TypeScript support.
-t
shortcut to run special test.
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'