Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

tapef

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tapef

Tape API with Mocha's error output

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

tapef

Tape bred uncermoniously with Mocha. Literally Mocha's reporter hacked into Tape.

The way I use this is to drop it in temporarily as a debugging tool when comparing big objects or strings, then switch back to vanilla Tape when I'm done.

Caveats

Doesn't play well alongside other Tape tests just yet.

Usage

Just replace require('tape') with require('tapef').

var test = require('tapef')

// Exactly the same api as Tape.
test('equal numbers', function(t) {
  t.equal(1, 2)
  t.end()
})

test('equal string', function(t) {
  var a = 'apple'
  var b = 'banana'
  t.equal(a, b)
  t.end()
})

// etc

Output

image

image

image

License

MIT

Keywords

tape

FAQs

Package last updated on 04 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts