UNPKG

mock-puppeteer-goto

Version:

A Node module to help mock a Puppeteer page's goto method

17 lines (15 loc) 417 B
interface ConfigPath { htmlPath: string; url: string; } type ConfigPathsArray = ConfigPath[]; type ConfigPathsObject = { [key: string]: string; }; type ConfigPaths = ConfigPathsArray | ConfigPathsObject; interface Config { paths: ConfigPaths; throwIfNotMapped?: boolean; } declare function export_default(page: any, config: Config): any; export { Config, ConfigPath, export_default as default };