aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/@vitest/mocker/dist/automock.d.ts
blob: e453d22eaff73946b7814fbf15e0f51275fb66ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import MagicString from 'magic-string';

interface AutomockOptions {
	/**
	* @default "__vitest_mocker__"
	*/
	globalThisAccessor?: string;
}
declare function automockModule(code: string, mockType: "automock" | "autospy", parse: (code: string) => any, options?: AutomockOptions): MagicString;

export { automockModule };
export type { AutomockOptions };