Set listTests and listSuites to lower detail if report is too big

This commit is contained in:
Michal Dorner 2021-02-20 22:32:30 +01:00
parent 603e84536d
commit 32f5b23752
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
5 changed files with 109 additions and 43 deletions

View file

@ -43,7 +43,7 @@ describe('dotnet-trx tests', () => {
const result = await parser.parse(filePath, fileContent)
expect(result).toMatchSnapshot()
const report = getReport([result], {listTests: 'failed'})
const report = getReport([result])
fs.mkdirSync(path.dirname(outputPath), {recursive: true})
fs.writeFileSync(outputPath, report)
})