From 898d3a7abc383b6bb5f1b31488f286664c3c8ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Tue, 6 Dec 2022 20:46:14 -0500 Subject: [PATCH] Show errors when running a suite of test --- lib/suite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/suite.js b/lib/suite.js index 07cc0d3..986fcf4 100644 --- a/lib/suite.js +++ b/lib/suite.js @@ -26,7 +26,7 @@ const getStackAbsolutePaths = () => { .map(filename => dirname(fileURLToPath(filename))) } -import { summaryreporter, totalreporter } from 'metaltest' +import { summaryreporter, errorreporter, totalreporter } from 'metaltest' const suite = async (folder = '.') => { const absolutePaths = getStackAbsolutePaths() const absolutePath = absolutePaths[2] @@ -47,7 +47,7 @@ const suite = async (folder = '.') => { continue } - await test.run(summaryreporter(), total) + await test.run(summaryreporter(), errorreporter(), total) } for (const file of fileIgnored) {