From e3c8fceb4218354a03d892bc9c551fd9663f1fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Sat, 30 Sep 2023 04:59:01 -0400 Subject: [PATCH] Use the default reporters --- lib/metaltest.test.js | 4 ++-- lib/stackparser.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/metaltest.test.js b/lib/metaltest.test.js index e3ac51f..4eb4696 100644 --- a/lib/metaltest.test.js +++ b/lib/metaltest.test.js @@ -24,5 +24,5 @@ test.end('verify', async (stats) => { assert.equal(stats.testFail.length, 0) }) -import { runifmain, summaryreporter, errorreporter } from '../index.js' -await runifmain(import.meta, () => test.run(summaryreporter(), errorreporter())) +import { runifmain } from '../index.js' +await runifmain(import.meta, test) diff --git a/lib/stackparser.test.js b/lib/stackparser.test.js index 577ff78..8b4a5bc 100644 --- a/lib/stackparser.test.js +++ b/lib/stackparser.test.js @@ -22,5 +22,5 @@ test('Diff', () => { } }) -import { runifmain, summaryreporter, errorreporter } from '../index.js' -await runifmain(import.meta, () => test.run(summaryreporter(), errorreporter())) +import { runifmain } from '../index.js' +await runifmain(import.meta, test)