Skip to content

Commit 06d19ba

Browse files
vorant94gnapse
andauthored
adjust vitest ambient declaration file according to vitest docs (testing-library#612)
Co-authored-by: Ernesto García <[email protected]>
1 parent a073b08 commit 06d19ba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

types/vitest.d.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import {type expect} from 'vitest'
22
import {type TestingLibraryMatchers} from './matchers'
33

4-
export {}
5-
declare module '@vitest/expect' {
6-
interface JestAssertion<T = any>
4+
declare module 'vitest' {
5+
interface Assertion<T = any>
76
extends TestingLibraryMatchers<
87
ReturnType<typeof expect.stringContaining>,
98
T
109
> {}
10+
interface AsymmetricMatchersContaining
11+
extends TestingLibraryMatchers<
12+
ReturnType<typeof expect.stringContaining>,
13+
any
14+
> {}
1115
}

0 commit comments

Comments
 (0)