diff --git a/tests/runner.ts b/tests/runner.ts index 96709fe..3797f8b 100644 --- a/tests/runner.ts +++ b/tests/runner.ts @@ -17,7 +17,7 @@ export class TestRunner { this.tests = opts.collection; this.dryRun = opts.dryRun ?? false; this.ignoreFail = opts.ignoreFail ?? false; - this.callback = ({ name, success, timeElapsed }) => { + this.callback = ({ name, success, timeElapsed }) => opts.callback ?? { console.log( `${ success ? "[OK]" : "[FAILED]"