Skip to content

Commit 014440d

Browse files
committed
chore: remove manual global test declarations
1 parent 91bdf51 commit 014440d

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

global.d.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,5 @@ declare module '*.css';
88
declare module '*.less';
99
declare module 'jsonp';
1010

11-
declare namespace JSX {
12-
type Element = React.JSX.Element;
13-
interface ElementClass extends React.JSX.ElementClass {}
14-
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
15-
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
16-
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
17-
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
18-
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
19-
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
20-
}
21-
22-
declare namespace jest {
23-
interface Matchers<R> {
24-
lastCalledWith(...expected: unknown[]): R;
25-
nthCalledWith(nthCall: number, ...expected: unknown[]): R;
26-
toBeCalled(): R;
27-
toBeCalledTimes(expected: number): R;
28-
toBeCalledWith(...expected: unknown[]): R;
29-
}
30-
}
31-
32-
declare const vi: {
33-
fn: <T extends (...args: any[]) => any = (...args: any[]) => any>(implementation?: T) => jest.MockedFunction<T>;
34-
mock: (moduleName: string, factory?: (importOriginal: <T>() => Promise<T>) => unknown) => void;
35-
spyOn: typeof jest.spyOn;
36-
useFakeTimers: () => void;
37-
useRealTimers: () => void;
38-
advanceTimersByTime: (msToRun: number) => void;
39-
clearAllTimers: () => void;
40-
runAllTimers: () => void;
41-
importActual: <T>(moduleName: string) => Promise<T>;
42-
clearAllMocks: () => void;
43-
resetAllMocks: () => void;
44-
restoreAllMocks: () => void;
45-
};
46-
4711

4812
declare module 'moment/locale/zh-cn';

0 commit comments

Comments
 (0)