UNPKG

724 BTypeScriptView Raw
1import { Executor } from '../executors/Executor';
2import Reporter, { ReporterProperties } from './Reporter';
3import Suite from '../Suite';
4import Test from '../Test';
5export default class Dom extends Reporter {
6 document: HTMLDocument;
7 suiteNode: HTMLElement;
8 testNode: HTMLElement | undefined;
9 constructor(executor: Executor, options?: DomOptions);
10 error(error: Error): void;
11 suiteEnd(suite: Suite): void;
12 suiteStart(suite: Suite): void;
13 testEnd(test: Test): void;
14 testStart(test: Test): void;
15 private _scroll;
16}
17export interface DomProperties extends ReporterProperties {
18 document: Document;
19 suiteNode: HTMLElement;
20}
21export declare type DomOptions = Partial<DomProperties>;