mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Fix uni tests
This commit is contained in:
parent
e516b7cf46
commit
651a2e1bf1
3 changed files with 2 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -100,3 +100,4 @@ lib/**/*
|
||||||
|
|
||||||
# Project specific
|
# Project specific
|
||||||
__tests__/__outputs__
|
__tests__/__outputs__
|
||||||
|
__tests__/__results__
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="2.249">
|
|
||||||
<testsuite name="__tests__\jest-junit.test.ts" errors="0" failures="0" skipped="0" timestamp="2020-11-17T21:26:30" time="2.195" tests="1">
|
|
||||||
<testcase classname="jest-junit tests" name="matches report snapshot" time="0.014">
|
|
||||||
</testcase>
|
|
||||||
</testsuite>
|
|
||||||
</testsuites>
|
|
||||||
|
|
@ -9,6 +9,7 @@ const outputPath = __dirname + '/__outputs__/jest-junit.md'
|
||||||
describe('jest-junit tests', () => {
|
describe('jest-junit tests', () => {
|
||||||
it('matches report snapshot', async () => {
|
it('matches report snapshot', async () => {
|
||||||
const result = await parseJestJunit(xmlFixture)
|
const result = await parseJestJunit(xmlFixture)
|
||||||
|
fs.mkdirSync(path.dirname(outputPath), {recursive: true})
|
||||||
fs.writeFileSync(outputPath, result?.output?.summary ?? '')
|
fs.writeFileSync(outputPath, result?.output?.summary ?? '')
|
||||||
|
|
||||||
expect(result.success).toBeFalsy()
|
expect(result.success).toBeFalsy()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue