Skip to content

Commit e159b88

Browse files
Merge pull request #241 from iamhoonse/fix-skip-failure-with-junit-reporter
checkA11y - `skipFailure` options not working when reporter is 'junit'
2 parents 436a183 + b4514d0 commit e159b88

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)