UNPKG

@hayspec/runner

Version:

Tests runner for Hayspec framework.

23 lines (22 loc) 532 B
import { Spec } from '@hayspec/spec'; export interface RunnerResult { file: string; spec: Spec; } export interface RunnerOptions { cwd?: string; deep?: number; dot?: boolean; } export declare class Runner { protected options: RunnerOptions; protected onlyEnabled: boolean; results: RunnerResult[]; constructor(options?: RunnerOptions); require(...patterns: string[]): Promise<void>; clear(): this; protected loadSpec(file: string): { file: string; spec: any; }; }