Fix uni tests

This commit is contained in:
Michal Dorner 2020-11-17 23:02:59 +01:00
parent e516b7cf46
commit 651a2e1bf1
3 changed files with 2 additions and 7 deletions

View file

@ -9,6 +9,7 @@ const outputPath = __dirname + '/__outputs__/jest-junit.md'
describe('jest-junit tests', () => {
it('matches report snapshot', async () => {
const result = await parseJestJunit(xmlFixture)
fs.mkdirSync(path.dirname(outputPath), {recursive: true})
fs.writeFileSync(outputPath, result?.output?.summary ?? '')
expect(result.success).toBeFalsy()