UNPKG

testplane

Version:

Tests framework based on mocha and wdio

25 lines (24 loc) 800 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"; import { TagFilter } from "../utils/cli"; export type TestParserParseOpts = { browserId: string; grep?: RegExp; tag?: TagFilter; 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, tag }: TestParserParseOpts): Test[]; } export {};