aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/@vitest/mocker/dist/index.d-C-sLYZi-.d.ts
blob: cad08995f72d7f827c8beafdda8f53d78c828b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import './types.d-B8CCKmHt.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 };