https://github.com/ai/better-node-test
The CLI shortcut for node --test runner with TypeScript
https://github.com/ai/better-node-test
Last synced: 12 months ago
JSON representation
The CLI shortcut for node --test runner with TypeScript
- Host: GitHub
- URL: https://github.com/ai/better-node-test
- Owner: ai
- License: mit
- Created: 2023-09-27T19:26:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T13:53:58.000Z (almost 2 years ago)
- Last Synced: 2025-06-09T12:07:57.800Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 25
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Better Node Test
The CLI shortcut for [`node --test`](https://nodejs.org/api/test.html) with:
* **TypeScript** support.
* `-t` **shortcut** to run special test.
---
Made at Evil Martians, product consulting for developer tools.
---
## Usage
Install CLI:
```sh
npm install --save-dev better-node-test
```
For TypeScript you will also need `tsx` (or you can use `tsm`):
```sh
npm install --save-dev better-node-test tsx
```
To run all tests with `*.test.ts` or `*.test.js`:
```sh
npx bnt
```
To run special test:
```sh
npx bnt ./test/request.test.ts -t 'uses HTTPS'
```