An open API service indexing awesome lists of open source software.

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

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.


Better Node Test CLI

---

  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'
```