Skip to content

Commit

Permalink
fix: bin script
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Apr 12, 2024
1 parent 66984fe commit 809a1ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/unit/bin/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ run({
timeout: Number(values.timeout ?? 30_000),
setup: (test) => {
const reportor = new Spec()
compose(test.reporter, reportor).pipe(process.stdout)
compose(test?.reporter, reportor).pipe(process.stdout)
},
files: await glob(['**/*.test.{js,ts}'], { ignore: 'node_modules/**' })
}).on('test:fail', (data) => {
if (data.todo === undefined || data.todo === false) {
process.exitCode = 1;
process.exitCode = 1
}
});
})

0 comments on commit 809a1ae

Please sign in to comment.