From b88fa6887491c355a002653e8cedc74f88c79b96 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 23 Feb 2024 07:37:48 -0600 Subject: [PATCH] Fix extends syntax --- tests/utils.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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({