/** * Accessibility assertion helper for component tests (Sweep S11, #1416). * * Runs axe-core against a rendered container and fails the test with a readable * report if any violations are found. Use after a Testing Library `render()`: * * import { render } from '@testing-library/svelte'; * import { expectNoA11yViolations } from '@happyvertical/smrt-vitest/a11y'; * * const { container } = render(MyComponent, { props }); * await expectNoA11yViolations(container); * * `color-contrast` is disabled by default: jsdom has no layout/paint engine, so * contrast can't be computed and the rule produces non-deterministic noise. * Pass `{ rules: { 'color-contrast': { enabled: true } } }` to override. */ import axe from 'axe-core'; export declare function expectNoA11yViolations(container: HTMLElement, options?: axe.RunOptions): Promise; //# sourceMappingURL=a11y.d.ts.map