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