[go: up one dir, main page]

Skip to content

The CLI shortcut for node --test runner with TypeScript

License

Notifications You must be signed in to change notification settings

ai/better-node-test

Repository files navigation

Better Node Test

The CLI shortcut for node --test with:

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

Better Node Test CLI


  Made at 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'

About

The CLI shortcut for node --test runner with TypeScript

Resources

License

Stars

Watchers

Forks

Sponsor this project