From 149be7074d6ad5fb392c0c6670ff21d95c2d4903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Fri, 11 Oct 2024 13:18:05 -0400 Subject: [PATCH] Pass the test obj to the test function --- lib/metaltest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metaltest.js b/lib/metaltest.js index 372afd7..1c69bcd 100644 --- a/lib/metaltest.js +++ b/lib/metaltest.js @@ -60,7 +60,7 @@ const metaltest = (title) => { for (const test of tests) { try { for (const fn of before) await fn() - await test.fn() + await test.fn(test) stats('success', test) notify(reporters, 'success', test) }