mirror of
https://github.com/CompeyDev/bun-lune-loader.git
synced 2024-12-12 04:40:39 +00:00
chore(tests): runner should make use of user callback
This commit is contained in:
parent
02929fb1c6
commit
c0c7f3851c
1 changed files with 1 additions and 1 deletions
|
@ -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]"
|
||||
|
|
Loading…
Reference in a new issue