From 651a2e1bf1fdc8fe7cc4bc10654b318d1f15b37a Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Tue, 17 Nov 2020 23:02:59 +0100 Subject: [PATCH] Fix uni tests --- .gitignore | 1 + __tests__/__results__/jest-junit.xml | 7 ------- __tests__/jest-junit.test.ts | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 __tests__/__results__/jest-junit.xml diff --git a/.gitignore b/.gitignore index 8188d94..4f3bf2a 100644 --- a/.gitignore +++ b/.gitignore @@ -100,3 +100,4 @@ lib/**/* # Project specific __tests__/__outputs__ +__tests__/__results__ diff --git a/__tests__/__results__/jest-junit.xml b/__tests__/__results__/jest-junit.xml deleted file mode 100644 index a898eb6..0000000 --- a/__tests__/__results__/jest-junit.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/__tests__/jest-junit.test.ts b/__tests__/jest-junit.test.ts index f2cd21f..be86212 100644 --- a/__tests__/jest-junit.test.ts +++ b/__tests__/jest-junit.test.ts @@ -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()