better-node-test

The CLI shortcut for node --test runner with TypeScript

MIT 20 个版本
安装
npm install better-node-test
yarn add better-node-test
pnpm add better-node-test
bun add better-node-test
README

Better Node Test

The CLI shortcut for node --test with:

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

Better Node Test CLI


  Made at Evil Martians, product consulting for developer tools.


Install

npm install --save-dev better-node-test

Usage

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'

To run test coverage:

npx bnt --coverage 100 --coverage-exclude '**/*.test.*'

Use /* node:coverage ignore next 2 */ comments to ignore lines.

版本列表
0.8.4 2026-03-27
0.8.3 2025-10-15
0.8.2 2025-10-15
0.8.1 2025-10-15
0.8.0 2025-10-15
0.7.2 2025-08-23
0.7.1 2024-08-24
0.7.0 2024-08-24
0.6.0 2024-08-08
0.5.1 2024-03-04
0.5.0 2024-01-16
0.4.1 2023-11-28
0.4.0 2023-11-28
0.3.1 2023-11-16
0.3.0 2023-11-10
0.2.0 2023-09-29
0.1.2 2023-09-28
0.1.1 2023-09-27
0.1.0 2023-09-27
0.0.0 2023-09-27