Use the default reporters

master
Frédéric Matte 2023-09-30 04:59:01 -04:00
parent 4f096bd848
commit e3c8fceb42
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)