Merge branch 'dev' into mocha-json

This commit is contained in:
Michal Dorner 2021-04-01 00:05:41 +02:00
commit ee126813a2
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
24 changed files with 3653 additions and 1304 deletions

View file

@ -1,5 +1,6 @@
import {ellipsis, fixEol} from '../utils/markdown-utils'
import {TestRunResult} from '../test-results'
import {getFirstNonEmptyLine} from '../utils/parse-utils'
type Annotation = {
path: string
@ -98,11 +99,6 @@ function enforceCheckRunLimits(err: Annotation): Annotation {
return err
}
function getFirstNonEmptyLine(stackTrace: string): string | undefined {
const lines = stackTrace.split(/\r?\n/g)
return lines.find(str => !/^\s*$/.test(str))
}
function ident(text: string, prefix: string): string {
return text
.split(/\n/g)