Fix flutter-json doesn't provide error details

This commit is contained in:
Michal Dorner 2021-02-01 15:08:21 +01:00
parent 2365963b2e
commit 855ff9bfaf
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
13 changed files with 3196 additions and 51 deletions

View file

@ -75,11 +75,11 @@ export class JestJunitParser implements TestParser {
return undefined
}
const stackTrace = tc.failure[0]
const details = tc.failure[0]
let path
let line
const src = this.exceptionThrowSource(stackTrace)
const src = this.exceptionThrowSource(details)
if (src) {
path = src.path
line = src.line
@ -88,7 +88,7 @@ export class JestJunitParser implements TestParser {
return {
path,
line,
stackTrace
details
}
}