diff --git a/test/__helpers__/accessibility.ts b/test/__helpers__/accessibility.ts index e2fd80e..9378b66 100644 --- a/test/__helpers__/accessibility.ts +++ b/test/__helpers__/accessibility.ts @@ -1,4 +1,4 @@ -import { run } from 'axe-core'; +import axe from 'axe-core'; type ContainerWrapper = { container: HTMLElement }; @@ -6,7 +6,7 @@ type AccessibilityTestSubject = ContainerWrapper | Promise; export const checkAccessibility = async (subject: AccessibilityTestSubject) => { const { container } = await subject; - const { violations } = await run(container); + const { violations } = await axe.run(container); expect(violations).toStrictEqual([]); };