Detalhes do pacote

@zkochan/tap-diff

zkochan34MIT1.1.1

The most human-friendly TAP reporter

tap, tape, ava, test

readme (leia-me)

@zkochan/tap-diff

!--/@-- !--@shields.flatSquare('npm')--

NPM version !--/@--

The most human-friendly TAP reporter.

Screenshot

Screenshot

!--@installation()--

Installation

This module is installed via npm:

npm install @zkochan/tap-diff --global
!--/@--

How to use

You can use tap-notify in the same way as other TAP reporters.

tape ./*.test.js | tap-diff

Or use with createStream():

'use strict'

const test = require('tape')
const tapDiff = require('tap-diff')

test.createStream()
  .pipe(tapDiff())
  .pipe(process.stdout)

test('timing test', (t) => {
  t.plan(2)
  t.equal(typeof Date.now, 'function')
  var start = Date.now()

  setTimeout(() => {
    t.equal(Date.now() - start, 100)
  }, 100)
})
!--@license()--

License

MIT © axross !--/@--


Dependencies Dependency status for master

  • babel-runtime: babel selfContained runtime
  • chalk: Terminal string styling done right. Much color.
  • core-js: Standard library
  • diff: A javascript text diff implementation.
  • duplexer: Creates a duplex stream
  • figures: Unicode symbols with Windows CMD fallbacks
  • jsondiffpatch: Diff & Patch for Javascript objects
  • pretty-ms: Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s
  • tap-parser: parse the test anything protocol
  • through2: A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise
!--/@--

Dev Dependencies devDependency status for master

!--/@--