UNPKG

testplane

Version:

Tests framework based on mocha and wdio

23 lines (22 loc) 732 B
/// <reference types="node" /> import { EventEmitter } from "events"; import { Test } from "./test-object"; import { Config } from "../config"; import { BrowserConfig } from "../config/browser-config"; import type { ReadTestsOpts } from "../testplane"; export type TestParserParseOpts = { browserId: string; grep?: RegExp; config: BrowserConfig; }; type LoadFilesOpts = { config: Config; runnableOpts?: ReadTestsOpts["runnableOpts"]; }; export declare class TestParser extends EventEmitter { #private; constructor(); loadFiles(files: string[], { config, runnableOpts }: LoadFilesOpts): Promise<void>; parse(files: string[], { browserId, config, grep }: TestParserParseOpts): Test[]; } export {};