From a3cc4a7ac3c86d83476e2c16fb870fc2e993e50a Mon Sep 17 00:00:00 2001 From: Aliaksei Mazheika Date: Wed, 4 Dec 2024 09:17:00 +0000 Subject: [PATCH 1/2] fix: Honor 'skipFailures: false' in HTML reporter --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 01e936e..39fe0bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -139,6 +139,7 @@ export const checkA11y = async ( results: { violations }, options, } as CreateReport) + testResultDependsOnViolations(impactedViolations, skipFailures) } else console.log('There were no violations to save in report') } else if (reporter === 'junit') { // Get the system root directory From 4b690e4af288fa341dd372de41546c3752a9bd8d Mon Sep 17 00:00:00 2001 From: Aliaksei Mazheika Date: Wed, 4 Dec 2024 09:19:32 +0000 Subject: [PATCH 2/2] fix: Changed 'impactedViolations' to 'violations' --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 39fe0bc..69446ed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -139,7 +139,7 @@ export const checkA11y = async ( results: { violations }, options, } as CreateReport) - testResultDependsOnViolations(impactedViolations, skipFailures) + testResultDependsOnViolations(violations, skipFailures) } else console.log('There were no violations to save in report') } else if (reporter === 'junit') { // Get the system root directory