JSPM

tap-browser-color

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 59
  • Score
    100M100P100Q68352F
  • License MIT

A simple reporter for tap/tape that makes the body tag yellow/red/green if pending/failing/passing. Useful for live-coding environments.

Package Exports

  • tap-browser-color

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tap-browser-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tap-browser-color

A super simple tap/tape reporter that changes the body tag background color depending on if the tests are passing, failing, or pending.

Live example!

Animation of requirebin example

This is meant for live-coding or environments where you want a big swath of color when your test status changes.

Usage

Best used with requirebin.

// Executing immediately intercepts (and still passes) console.log output
var undo = require('tap-browser-color')();
var tape = require('tape');

test('yep', function(t) {
  t.ok('whatup');
  t.end();
});

// Entirely optional, this just removes the `console.log` intercept.
// Probably pretty useless.
undo();

License

MIT