node-tee

0.2.2 • Public • Published

NodeTee

Simple test runner for Nodejs projects.

Instruction

Define test with Tee
const {Tee} = require('node-tee');
 
const myTee = Tee.new('Controller x');
myTee.case('Controller should pass', () => {
    assert(true, true);
});
module.exports = myTee;
Register Tee in Pot
const {Pot} = require('node-tee');
const myTee = require('./myTee.path.js');
 
const myPot = Pot.new('My App');
myPot.register([myTee]);
myPot.run();
expect

case method callback provide expect functionality

myTee('Controller', (expect) => {
    expect(true).toBe(true);
    expect(true).toBeTruthy();
    expect(false).toBeFalsy();
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.217latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.217
0.2.10
0.2.00
0.1.30
0.1.20
0.1.10
0.1.00
0.0.10

Package Sidebar

Install

npm i node-tee

Weekly Downloads

17

Version

0.2.2

License

MIT

Unpacked Size

6.24 kB

Total Files

13

Last publish

Collaborators

  • mishaszu