tehanu-repo-coco
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Colourful Console Test Reporter

NPM version

Reports the test progress of tests written with tehanu on the console with colours if the terminal supports them.

Synopsis

Console reporter

test.js:

const test = require('tehanu')('sum'),
      { equal } = require('assert'),
      sum = require('./sum')

test('two numbers', () => equal(sum(1, 2), 3))
test('one number', () => equal(sum(1), 1))

Installation

You can install the test reporter using your favourite Node.js package manager:

npm i -D tehanu-repo-coco
yarn add -D tehanu-repo-coco
pnpm i -D tehanu-repo-coco

Configuration

If the environment variable NO_COLOR is not empty, colouring the output will be disabled. If the environment variable FORCE_COLOR is not empty, colouring the output will be enabled, although the terminal support for colours will not be detected.

Package Sidebar

Install

npm i tehanu-repo-coco

Weekly Downloads

16

Version

1.0.0

License

MIT

Unpacked Size

9.3 kB

Total Files

7

Last publish

Collaborators

  • prantlf