From 6e4705c86416b7bb7cc9e1ebccc204ffa97b36d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Mon, 5 Dec 2022 22:44:47 -0500 Subject: [PATCH] Simplify reporter interface --- lib/metaltest.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/metaltest.js b/lib/metaltest.js index d8e90a7..241ff43 100644 --- a/lib/metaltest.js +++ b/lib/metaltest.js @@ -27,7 +27,6 @@ const metaltest = (title) => { runner.run = async (...reporters) => { notify(reporters, 'start', title) - notify(reporters, 'before') const tests = only.length ? only : suite for (const test of tests) { @@ -46,11 +45,9 @@ const metaltest = (title) => { } for (const fn of after) await fn() - notify(reporters, 'after') const stats = { title, success, fail, total: success + fail, testSuccess, testFail } notify(reporters, 'end', stats) - return stats }