File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,6 @@ declare var __FEATURE_PROD_DEVTOOLS__: boolean
1919declare var __FEATURE_SUSPENSE__ : boolean
2020declare var __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__ : boolean
2121
22- // for tests
23- declare namespace jest {
24- interface Matchers < R , T > {
25- toHaveBeenWarned ( ) : R
26- toHaveBeenWarnedLast ( ) : R
27- toHaveBeenWarnedTimes ( n : number ) : R
28- }
29- }
30-
3122declare module '*.vue' { }
3223
3324declare module 'file-saver' {
Original file line number Diff line number Diff line change 11import type { MockInstance } from 'vitest'
22
3+ declare module 'vitest' {
4+ interface Assertion < T = any > extends CustomMatchers < T > { }
5+ interface AsymmetricMatchersContaining extends CustomMatchers { }
6+ }
7+
8+ interface CustomMatchers < R = unknown > {
9+ toHaveBeenWarned ( ) : R
10+ toHaveBeenWarnedLast ( ) : R
11+ toHaveBeenWarnedTimes ( n : number ) : R
12+ }
13+
314vi . stubGlobal ( 'MathMLElement' , class MathMLElement { } )
415
516expect . extend ( {
You can’t perform that action at this time.
0 commit comments