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 + > {} }