A simple reporter for tap/tape that makes the body tag yellow/red/green if pending/failing/passing. Useful for live-coding environments.
A super simple tap/tape reporter that changes the body tag background color depending on if the tests are passing, failing, or pending.
This is meant for live-coding or environments where you want a big swath of color when your test status changes.
Best used with requirebin.
// Executing immediately intercepts (and still passes) console.log outputvar undo = require'tap-browser-color';var tape = require'tape';test'yep'tok'whatup';tend;;// Entirely optional, this just removes the `console.log` intercept.// Probably pretty useless.undo;