Skip to content

Commit

Permalink
fix: use first stack frame in json reporter (#3645)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Jul 3, 2023
1 parent a749a6c commit 80ea7ef
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -184,7 +184,7 @@ export class JsonReporter implements Reporter {
return

const stack = parseErrorStacktrace(error)
const frame = stack[stack.length - 1]
const frame = stack[0]
if (!frame)
return

Expand Down

0 comments on commit 80ea7ef

Please sign in to comment.