Skip to content

Commit 08ec20c

Browse files
authored
Merge pull request #10 from hypothesis/pretty-print-a11y-violation
JSON-stringify accessibility violations before console-logging them
2 parents 7fd8b61 + e1f0483 commit 08ec20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/accessibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function checkAccessibility(
8686

8787
const violations = await testScenario(elementOrWrapper);
8888
for (const violation of violations) {
89-
console.error('axe-core violation', violation);
89+
console.error('axe-core violation', JSON.stringify(violation, null, 2));
9090
}
9191
if (violations.length > 0) {
9292
throw new Error(`Scenario "${name}" has accessibility violations`);

0 commit comments

Comments
 (0)