File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,8 @@ import {type TestingLibraryMatchers} from './matchers'
44export { }
55declare module '@jest/expect' {
66 export interface Matchers < R extends void | Promise < void > >
7- extends TestingLibraryMatchers < typeof expect . stringContaining , R > { }
7+ extends TestingLibraryMatchers <
8+ ReturnType < typeof expect . stringContaining > ,
9+ R
10+ > { }
811}
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ import {type TestingLibraryMatchers} from './matchers'
55declare global {
66 namespace jest {
77 interface Matchers < R = void , T = { } >
8- extends TestingLibraryMatchers < typeof expect . stringContaining , R > { }
8+ extends TestingLibraryMatchers <
9+ ReturnType < typeof expect . stringContaining > ,
10+ R
11+ > { }
912 }
1013}
Original file line number Diff line number Diff line change @@ -4,5 +4,8 @@ import {type TestingLibraryMatchers} from './matchers'
44export { }
55declare module '@vitest/expect' {
66 interface JestAssertion < T = any >
7- extends TestingLibraryMatchers < typeof expect . stringContaining , T > { }
7+ extends TestingLibraryMatchers <
8+ ReturnType < typeof expect . stringContaining > ,
9+ T
10+ > { }
811}
You can’t perform that action at this time.
0 commit comments