tap-diff-alsatian

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i tap-diff-alsatian

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

225 kB

Total Files

9

Last publish

Collaborators

  • lukino