From 5fb0582760679550747aaab55258d6afc4587469 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Wed, 12 Nov 2025 13:41:29 +0100 Subject: [PATCH] chore: run linter to fix code style issues --- __tests__/jest-junit.test.ts | 6 +++--- dist/index.js | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/__tests__/jest-junit.test.ts b/__tests__/jest-junit.test.ts index 938cdd7..1628016 100644 --- a/__tests__/jest-junit.test.ts +++ b/__tests__/jest-junit.test.ts @@ -263,15 +263,15 @@ describe('jest-junit tests', () => { const parser = new JestJunitParser(opts) const result = await parser.parse(filePath, fileContent) - + // Check if this fixture has failures to determine expected behavior const hasFailed = result.failed > 0 - + const report = getReport([result], { ...DEFAULT_OPTIONS, collapsed: 'auto' }) - + if (hasFailed) { // Should not collapse when there are failures expect(report).not.toContain('
Expand for details') diff --git a/dist/index.js b/dist/index.js index 7a5188d..3687bbd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2036,8 +2036,7 @@ function getTestRunsReport(testRuns, options) { const sections = []; const totalFailed = testRuns.reduce((sum, tr) => sum + tr.failed, 0); // Determine if report should be collapsed based on collapsed option - const shouldCollapse = options.collapsed === 'always' || - (options.collapsed === 'auto' && totalFailed === 0); + const shouldCollapse = options.collapsed === 'always' || (options.collapsed === 'auto' && totalFailed === 0); if (shouldCollapse) { sections.push(`
Expand for details`); sections.push(` `);