Fix EOL issues - remove all \r from annotation message

This commit is contained in:
Michal Dorner 2021-01-14 22:34:00 +01:00
parent 4197e7a327
commit 760c090915
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
7 changed files with 20 additions and 13 deletions

View file

@ -2,7 +2,7 @@ import {Annotation, ParseOptions, TestResult} from '../parser-types'
import {parseStringPromise} from 'xml2js'
import {JunitReport, TestCase, TestSuite} from './jest-junit-types'
import {Icon} from '../../utils/markdown-utils'
import {fixEol, Icon} from '../../utils/markdown-utils'
import {normalizeFilePath} from '../../utils/file-utils'
import {parseAttribute} from '../../utils/xml-utils'
@ -91,7 +91,7 @@ function getAnnotations(junit: JunitReport, workDir: string, trackedFiles: strin
start_line: src.line,
end_line: src.line,
path: src.file,
message: ex,
message: fixEol(ex),
title: `[${suite.$.name}] ${tc.$.name.trim()}`
})
}