From 241e9cb516f45bd087240af0fae0891ad3bf0db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Tue, 6 Dec 2022 12:55:41 -0500 Subject: [PATCH] Log succeeded test --- lib/metaltest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/metaltest.js b/lib/metaltest.js index 241ff43..c0fd209 100644 --- a/lib/metaltest.js +++ b/lib/metaltest.js @@ -33,12 +33,13 @@ const metaltest = (title) => { try { for (const fn of before) await fn() await test.fn() + success++ + testSuccess.push(test) notify(reporters, 'success', test) } catch (error) { fail++ - testFail.push(Object.assign({}, test, { error })) notify(reporters, 'fail', test, error) }