From 06d19ba759a5ff4b51417cc9a7ecb72c785eb74d Mon Sep 17 00:00:00 2001 From: Mordechai Dror Date: Wed, 24 Jul 2024 21:03:37 +0300 Subject: [PATCH] adjust vitest ambient declaration file according to vitest docs (#612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ernesto GarcĂ­a --- 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 + > {} }