/** * Type augmentation registering the vitest-axe `toHaveNoViolations` matcher on * Vitest's `expect`. vitest-axe 0.1.0 only augments the legacy `Vi` namespace, * which Vitest 2.x no longer maps onto `expect`, so we declare it against the * `vitest` module directly. The matcher itself is registered at runtime in * web/src/__tests__/setup.ts via `expect.extend`. */ import 'vitest'; interface AxeMatchers { toHaveNoViolations(): R; } declare module 'vitest' { // eslint-disable-next-line @typescript-eslint/no-empty-object-type interface Assertion extends AxeMatchers {} // eslint-disable-next-line @typescript-eslint/no-empty-object-type interface AsymmetricMatchersContaining extends AxeMatchers {} }