From 1d0eb985478e44db8c00deceda73fa1cdca96b4e Mon Sep 17 00:00:00 2001 From: Mordechai Dror Date: Mon, 15 Jul 2024 20:15:56 +0300 Subject: [PATCH] adjust vitest ambient declaration file according to vitest docs --- types/vitest.d.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/types/vitest.d.ts b/types/vitest.d.ts index a19295b..97f59b9 100644 --- a/types/vitest.d.ts +++ b/types/vitest.d.ts @@ -1,11 +1,15 @@ import {type expect} from 'vitest' import {type TestingLibraryMatchers} from './matchers' -export {} -declare module '@vitest/expect' { - interface JestAssertion +declare module 'vitest' { + interface Assertion extends TestingLibraryMatchers< ReturnType, T > {} + interface AsymmetricMatchersContaining + extends TestingLibraryMatchers< + ReturnType, + any + > {} }