/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import type { AsyncFnMock } from "@async-fn/jest"; type GetMockedType = T extends (...args: any[]) => Promise ? AsyncFnMock : T extends (...args: any[]) => any ? jest.MockedFunction : T; export type Mocked = { -readonly [P in keyof T]: GetMockedType; };