File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ // Need to use interfaces, as they don't register the extended type definitions
2+ // otherwise.
3+ /* eslint-disable @typescript-eslint/no-empty-object-type */
14// https://jest-extended.jestcommunity.dev/docs/getting-started/setup#use-with-vitest
25import type CustomMatchers from 'jest-extended' ;
36import 'vitest' ;
47
58declare module 'vitest' {
6- type Assertion < T = any > = CustomMatchers < T >
7- type AsymmetricMatchersContaining < T = any > = CustomMatchers < T >
8- type ExpectStatic < T = any > = CustomMatchers < T >
9+ interface Assertion < T = any > extends CustomMatchers < T > { }
10+ interface AsymmetricMatchersContaining < T = any > extends CustomMatchers < T > { }
11+ interface ExpectStatic < T = any > extends CustomMatchers < T > { }
912}
You can’t perform that action at this time.
0 commit comments