From 444e155b7723079bf99ece58f3988d81aaa97ea9 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({