logo

tape-lite

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

Hook t.teardown to test.after

Diffstat:

Mindex.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js @@ -21,7 +21,8 @@ module.exports = function(name, opts, cb) { // t.end(err) t.end = (err) => console.log("t.end called with:", err); - // t.teardown(cb) + // t.teardown(cb) → after([fn][, options]) + t.teardown = test.after; // t.fail(msg) t.fail = assert.fail;