Skip to content

Commit 0c3d721

Browse files
committed
chore: clean up test globals
1 parent ccc991b commit 0c3d721

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

global.d.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,4 @@ declare namespace jest {
3535
}
3636
}
3737

38-
declare const vi: {
39-
fn: <T extends (...args: any[]) => any = (...args: any[]) => any>(
40-
implementation?: T,
41-
) => jest.MockedFunction<T>;
42-
mock: (
43-
moduleName: string,
44-
factory?: (importOriginal: <T>() => Promise<T>) => unknown,
45-
) => void;
46-
spyOn: typeof jest.spyOn;
47-
useFakeTimers: () => void;
48-
useRealTimers: () => void;
49-
advanceTimersByTime: (msToRun: number) => void;
50-
clearAllTimers: () => void;
51-
runAllTimers: () => void;
52-
importActual: <T>(moduleName: string) => Promise<T>;
53-
clearAllMocks: () => void;
54-
resetAllMocks: () => void;
55-
restoreAllMocks: () => void;
56-
};
57-
5838
declare module 'moment/locale/zh-cn';

tests/CSSMotion.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ describe('CSSMotion', () => {
859859
if (!('findDOMNode' in ReactDOM)) {
860860
Object.defineProperty(ReactDOM, 'findDOMNode', {
861861
value: jest.fn(),
862+
writable: true,
862863
configurable: true,
863864
});
864865
}

0 commit comments

Comments
 (0)