better-node-test
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.
-tshortcut 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'