Files
2026-06-10 12:38:42 -03:00

14 lines
368 B
TypeScript

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