Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
26 lines
859 B
Plaintext
26 lines
859 B
Plaintext
import './types.d-BjI5eAwu.js';
|
|
|
|
type Key = string | symbol;
|
|
type CreateMockInstanceProcedure = (options?: {
|
|
prototypeMembers?: (string | symbol)[];
|
|
name?: string | symbol;
|
|
originalImplementation?: (...args: any[]) => any;
|
|
keepMembersImplementation?: boolean;
|
|
}) => any;
|
|
interface MockObjectOptions {
|
|
type: "automock" | "autospy";
|
|
globalConstructors: GlobalConstructors;
|
|
createMockInstance: CreateMockInstanceProcedure;
|
|
}
|
|
declare function mockObject(options: MockObjectOptions, object: Record<Key, any>, mockExports?: Record<Key, any>): Record<Key, any>;
|
|
interface GlobalConstructors {
|
|
Object: ObjectConstructor;
|
|
Function: FunctionConstructor;
|
|
RegExp: RegExpConstructor;
|
|
Array: ArrayConstructor;
|
|
Map: MapConstructor;
|
|
}
|
|
|
|
export { mockObject as m };
|
|
export type { CreateMockInstanceProcedure as C, GlobalConstructors as G, MockObjectOptions as M };
|