Skip to content

Commit e1f0483

Browse files
committed
JSON-stringify accessibility violations before console-logging them
1 parent 7fd8b61 commit e1f0483

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)