Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 939 Bytes

README.md

File metadata and controls

52 lines (35 loc) · 939 Bytes

tap-diff-alsatian

npm version

The most human-friendly TAP reporter.

Screenshot

Screenshot

Info

This package is an updated version of tap-diff with:

  • Dependencies update
  • Support of last release version of alsatian (3.2.1).

How to use

npm install tap-diff-alsatian
alsatian './**/*.spec.ts' --tap | tap-diff-alsatian

Or use with createStream():

'use strict'

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

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

MIT