zora-node-reporter
v0.0.1
Published
A reporter for zora which targets nodejs environment
Downloads
75
Maintainers
Readme
zora-node-reporter
A reporter which takes advantage of TTYs to create very informative, straight to the point reports:
- A test files diagnostic
- A diagnostic per failing assertion (with location, semantic structure, and detailed difference between expected and actual value)
- A summary counter.
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());