mirror of
https://github.com/CompeyDev/bun-lune-loader.git
synced 2024-12-12 12:50: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.tests = opts.collection;
|
||||||
this.dryRun = opts.dryRun ?? false;
|
this.dryRun = opts.dryRun ?? false;
|
||||||
this.ignoreFail = opts.ignoreFail ?? false;
|
this.ignoreFail = opts.ignoreFail ?? false;
|
||||||
this.callback = ({ name, success, timeElapsed }) => {
|
this.callback = ({ name, success, timeElapsed }) => opts.callback ?? {
|
||||||
console.log(
|
console.log(
|
||||||
`${
|
`${
|
||||||
success ? "[OK]" : "[FAILED]"
|
success ? "[OK]" : "[FAILED]"
|
||||||
|
|
Loading…
Reference in a new issue