Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jan 30, 2024
1 parent aa24cec commit 435ca1e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,17 @@ export default async function runWithTypeScript (config) {
}
config.prefix = prefix
config.setup = (test) => {
for (const chunk of pushable) {
test.reporter.push(chunk)
if (Array.isArray(test.reporter)) {
for (const chunk of pushable) {
test.reporter.push(chunk)
}
pushable = test.reporter
} else {
for (const chunk of pushable) {
test.push(chunk)
}
pushable = test
}
pushable = test.reporter
}

let tscChild
Expand Down

0 comments on commit 435ca1e

Please sign in to comment.