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()