- Notifications
You must be signed in to change notification settings - Fork26
👯 The most human-friendly TAP reporter.
License
NotificationsYou must be signed in to change notification settings
axross/tap-diff
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The most human-friendlyTAP reporter.
You can use tap-diff in the same way as otherTAP reporters.
npm install -g tap-diff
tape ./*.test.js | tap-diff
tap-diff useschalk for adding color, which automatically detectscolor terminals. If you're piping the output and want to force color:
FORCE_COLOR=t tape ./*.test.js | tap-diff
Or use withcreateStream()
:
'use strict'consttest=require('tape')consttapDiff=require('tap-diff')test.createStream().pipe(tapDiff()).pipe(process.stdout)test('timing test',(t)=>{t.plan(2)t.equal(typeofDate.now,'function')varstart=Date.now()setTimeout(()=>{t.equal(Date.now()-start,100)},100)})
MIT
About
👯 The most human-friendly TAP reporter.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.