mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Set listTests and listSuites to lower detail if report is too big
This commit is contained in:
parent
603e84536d
commit
32f5b23752
5 changed files with 109 additions and 43 deletions
|
|
@ -46,7 +46,7 @@ describe('jest-junit 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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue