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)