Skip to content

Commit 7e6a62a

Browse files
authored
fix: match jest json output by making json reporter output ndjson-compatible (#4824)
1 parent 5053a5d commit 7e6a62a

File tree

2 files changed

+5
-485
lines changed

2 files changed

+5
-485
lines changed

packages/vitest/src/node/reporters/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class JsonReporter implements Reporter {
148148
testResults,
149149
}
150150

151-
await this.writeReport(JSON.stringify(result, null, 2))
151+
await this.writeReport(JSON.stringify(result))
152152
}
153153

154154
async onFinished(files = this.ctx.state.getFiles()) {

0 commit comments

Comments
 (0)