Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

zora-node-reporter

lorenzofox342MIT0.0.1TypeScript support: included

A reporter for zora which targets nodejs environment

zora, reporter, nodejs, test, unit, testing, cli, tool

readme

zora-node-reporter

A reporter which takes advantage of TTYs to create very informative, straight to the point reports:

  1. A test files diagnostic
  2. A diagnostic per failing assertion (with location, semantic structure, and detailed difference between expected and actual value)
  3. A summary counter.
<summary> Report screen shot</summary>

test report screen shot

installation

npm install zora-node-reporter

usage

In a Nodejs environment

import {createHarness} from 'zora';
import {reporter} from 'zora-node-reporter';

const h = createHarness();

const {test} = h;

test(`hello world`, t => {
    t.ok(true);

    t.test('nested', t => {
        t.eq('foo', 'fob');
    });
});

test(`hello world`, t => {
    t.ok(true);

    t.test('nested', t => {
        t.eq('foo', 'fob');
    });
});

h.report(reporter());