$ npm install zora
Zora is one of the lightest (if not the lightest), yet one of the fastest Javascript testing library (if not the fastest). It works in many environments including nodejs and the browser
The library is a regular Javascript module and can be directly imported from a CDN:
import {test} from 'https://unpkg.com/zora@5.0.0-alpha.1/dist/index.js'
test(`hello from zora`, ({ok}) => {
ok(true, 'it worked');
})
Or installed via a package manager such NPM by running the command (assuming you have Nodejs installed on your machine):
npm i -D zora
You can then build your testing program by using the exported test function
import {test} from 'zora';
test(`my very first test`, (assertion) => {
assertion.ok(true, 'true is always truthy')
})
The tests should run automatically and report its execution into the console
TAP version 13
# my very first test
ok 1 - true is always truthy
1..1
# tests 1
# pass 1
# fail 0
# skip 0
// todo
© 2010 - cnpmjs.org x YWFE | Home | YWFE