logo

tape-lite

tape shim based on node:test+node:assert with no dependencies
commit: f9b3eef60e3ffbc99e7496dfa7ce6464239f305c
parent 191c01ea71dcba97a552fd04b4341d2fde09779b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 21 Sep 2023 13:00:03 +0200

Attach console.log to t.plan and t.end

Diffstat:

Mindex.js2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/index.js b/index.js @@ -16,8 +16,10 @@ module.exports = function(name, opts, cb) { const assert = require('node:assert/strict'); // t.plan(n) + t.plan = (n) => console.log("t.plan called with:", n); // t.end(err) + t.end = (err) => console.log("t.end called with:", err); // t.teardown(cb)