Skip to content

Commit b4514d0

Browse files
committed
fix: change reporter conditionals in checkA11y() to fix skipFailure options not working when reporter is 'junit'
1 parent cdec5d9 commit b4514d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ export const checkA11y = async (
160160
reporterWithOptions = reporter
161161
}
162162

163-
if (reporter !== 'html')
163+
if (reporter !== 'html' && reporter !== 'junit')
164164
await reportViolations(impactedViolations, reporterWithOptions)
165165

166-
if (reporter === 'v2' || (reporter !== 'html' && reporter !== 'junit'))
166+
if (reporter === 'v2' || (reporter !== 'html'))
167167
testResultDependsOnViolations(impactedViolations, skipFailures)
168168
}
169169

0 commit comments

Comments
 (0)