Skip to content

Commit

Permalink
fix: test runner (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-sanfratello authored Dec 6, 2023
1 parent eb32c6e commit ce218d0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ const reporter = process.stdout.isTTY ? new spec() : tap

const files = glob('test/**/*.test.js')

run({ files, timeout: 30_000, concurrency: files.length })
.compose(reporter)
.pipe(process.stdout)
const stream = run({
files,
timeout: 30_000,
concurrency: files.length
})

stream.on('test:fail', () => {
process.exitCode = 1
})

stream.compose(reporter).pipe(process.stdout)

0 comments on commit ce218d0

Please sign in to comment.