From c0c7f3851c80119cb4f2ae71ed0a5efae8328233 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 25 Sep 2023 19:25:39 +0530 Subject: [PATCH] chore(tests): runner should make use of user callback --- tests/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]"