diff --git a/tests/utils.ts b/tests/utils.ts index 4252eac..34dd471 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -6,14 +6,11 @@ interface CustomMatchers { toLogError(): R; } -declare global { - // eslint-disable-next-line @typescript-eslint/no-namespace - namespace Vi { - // eslint-disable-next-line @typescript-eslint/no-empty-interface - interface Assertion extends CustomMatchers {} - // eslint-disable-next-line @typescript-eslint/no-empty-interface - interface AsymmetricMatchersContaining extends CustomMatchers {} - } +declare module "vitest" { + // eslint-disable-next-line @typescript-eslint/no-empty-interface + interface Assertion extends CustomMatchers {} + // eslint-disable-next-line @typescript-eslint/no-empty-interface + interface AsymmetricMatchersContaining extends CustomMatchers {} } expect.extend({