# zora-node-reporter

> A reporter for zora which targets nodejs environment

Latest version **0.0.1** (published 2019-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install zora-node-reporter
pnpm add zora-node-reporter
yarn add zora-node-reporter
bun add zora-node-reporter
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-12-11 |
| First published | 2019-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 64.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Laurent RENARD |
| Maintainers | lorenzofox3 |
| Keywords | zora, reporter, nodejs, test, unit, testing, cli, tool |

## Links

- npm: https://www.npmjs.com/package/zora-node-reporter
- npm.io page: https://npm.io/package/zora-node-reporter

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-12-11

## 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.

<details>
    <summary> Report screen shot</summary>

![test report screen shot](./media/test_report.png)

</details>

## installation

``npm install zora-node-reporter``

## usage

In a **Nodejs** environment

```javascript
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());
```

---
_Source: https://npm.io/package/zora-node-reporter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
