From 3fcc061151e659afc19f2ef49ed1e8fbb83d9241 Mon Sep 17 00:00:00 2001 From: Mordechai Dror Date: Thu, 12 Sep 2024 15:00:05 +0300 Subject: [PATCH] Revert "adjust vitest ambient declaration file according to vitest docs (#612)" This reverts commit 06d19ba759a5ff4b51417cc9a7ecb72c785eb74d. --- types/vitest.d.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/types/vitest.d.ts b/types/vitest.d.ts index 97f59b98..a19295be 100644 --- a/types/vitest.d.ts +++ b/types/vitest.d.ts @@ -1,15 +1,11 @@ import {type expect} from 'vitest' import {type TestingLibraryMatchers} from './matchers' -declare module 'vitest' { - interface Assertion +export {} +declare module '@vitest/expect' { + interface JestAssertion extends TestingLibraryMatchers< ReturnType, T > {} - interface AsymmetricMatchersContaining - extends TestingLibraryMatchers< - ReturnType, - any - > {} }