Skip to content

Commit 49f720d

Browse files
committed
chore: remove manual global test declarations
1 parent 5a422ca commit 49f720d

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

global.d.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,4 @@ 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>(
34-
implementation?: T,
35-
) => jest.MockedFunction<T>;
36-
mock: (moduleName: string, factory?: (importOriginal: <T>() => Promise<T>) => unknown) => void;
37-
spyOn: typeof jest.spyOn;
38-
useFakeTimers: () => void;
39-
useRealTimers: () => void;
40-
advanceTimersByTime: (msToRun: number) => void;
41-
clearAllTimers: () => void;
42-
runAllTimers: () => void;
43-
importActual: <T>(moduleName: string) => Promise<T>;
44-
clearAllMocks: () => void;
45-
resetAllMocks: () => void;
46-
restoreAllMocks: () => void;
47-
};
48-
4911
declare module 'moment/locale/zh-cn';

0 commit comments

Comments
 (0)