Skip to content

Commit 7fd10de

Browse files
Revert changes to jestExtended.d.ts
1 parent 26003c5 commit 7fd10de

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

tests/setup/jestExtended.d.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
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 */
511
import type CustomMatchers from 'jest-extended';
612
import 'vitest';
713

814
declare 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
}

0 commit comments

Comments
 (0)