@mochify/mochify
Version:
Run mocha tests in headless browsers
9 lines (8 loc) • 390 B
TypeScript
export type MochifyDriver = import("./driver").MochifyDriver;
/**
* @param {MochifyDriver} driver
* @param {function(string, Object): void} emit
* @param {(function(string): string) | null} mapStack
* @returns {Promise<number>}
*/
export function pollEvents(driver: MochifyDriver, emit: (arg0: string, arg1: any) => void, mapStack: ((arg0: string) => string) | null): Promise<number>;