File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Sets up Jest Extended to work with Vitest
3+ *
4+ * https://jest-extended.jestcommunity.dev/docs/getting-started/setup#use-with-vitest
5+ */
6+
17// Need to use interfaces, as they don't register the extended type definitions
28// otherwise.
3-
4- // https://jest-extended.jestcommunity.dev/docs/getting-started/setup#use-with-vitest
9+ /* eslint-disable @typescript-eslint/consistent-type-definitions */
10+ /* eslint-disable @typescript-eslint/no-empty-object-type */
511import type CustomMatchers from 'jest-extended' ;
612import 'vitest' ;
713
814declare module 'vitest' {
9- type Assertion < T = any > = { } & CustomMatchers < T >
10- type AsymmetricMatchersContaining < T = any > = { } & CustomMatchers < T >
11- type ExpectStatic < T = any > = { } & CustomMatchers < T >
15+ interface Assertion < T = any > extends CustomMatchers < T > { }
16+ interface AsymmetricMatchersContaining < T = any > extends CustomMatchers < T > { }
17+ interface ExpectStatic < T = any > extends CustomMatchers < T > { }
1218}
You can’t perform that action at this time.
0 commit comments