mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
6e0e643337
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
type GetJestSpyOnFunction = (
|
|
obj: any,
|
|
method: string,
|
|
) => jest.SpyInstance<any, any>;
|
|
|
|
export const getJestSpyOn: GetJestSpyOnFunction = (
|
|
obj: any,
|
|
method: string,
|
|
): jest.SpyInstance<any, any> => {
|
|
return jest.spyOn(obj, method) as jest.SpyInstance<any, any>;
|
|
};
|