Skip to content

Commit

Permalink
fix: match jest json output by making json reporter output ndjson-com…
Browse files Browse the repository at this point in the history
…patible (#4824)
  • Loading branch information
bard authored Dec 31, 2023
1 parent 5053a5d commit 7e6a62a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 485 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/reporters/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class JsonReporter implements Reporter {
testResults,
}

await this.writeReport(JSON.stringify(result, null, 2))
await this.writeReport(JSON.stringify(result))
}

async onFinished(files = this.ctx.state.getFiles()) {
Expand Down
Loading

0 comments on commit 7e6a62a

Please sign in to comment.