1.0.1 • Published 3 years ago

tap-diff-alsatian v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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