aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/vitest-extensions.ts13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/vitest-extensions.ts b/test/vitest-extensions.ts
index b33919ef..d8b2f773 100644
--- a/test/vitest-extensions.ts
+++ b/test/vitest-extensions.ts
@@ -22,12 +22,9 @@ interface CustomMatchers {
toContainDuplicates(): void;
}
-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 {}
}