UNPKG

2.73 kBTypeScriptView Raw
1import { ReporterOptions } from '../reporters/Reporter';
2import { BenchmarkReporterOptions } from '../reporters/Benchmark';
3import { TunnelOptions } from '@theintern/digdug/Tunnel';
4import { BrowserStackOptions } from '@theintern/digdug/BrowserStackTunnel';
5import { SeleniumOptions } from '@theintern/digdug/SeleniumTunnel';
6export interface Config extends ResourceConfig {
7 bail: boolean;
8 baseline: boolean;
9 basePath: string;
10 benchmark: boolean;
11 benchmarkConfig?: BenchmarkConfig;
12 browser: ResourceConfig;
13 coverageVariable: string;
14 debug: boolean;
15 defaultTimeout: number;
16 description: string;
17 filterErrorStack: boolean;
18 grep: RegExp;
19 internPath: string;
20 name: string;
21 node: ResourceConfig;
22 sessionId: string;
23 showConfig: boolean;
24 capabilities: {
25 name?: string;
26 build?: string;
27 [key: string]: any;
28 };
29 connectTimeout: number;
30 coverage: false | string[];
31 environments: EnvironmentSpec[];
32 excludeInstrumentation: never;
33 functionalBaseUrl?: string;
34 functionalCoverage: boolean;
35 functionalSuites: string[];
36 functionalTimeouts: {
37 connectTimeout?: never;
38 find?: number;
39 executeAsync?: number;
40 pageLoad?: number;
41 };
42 heartbeatInterval?: number;
43 instrumenterOptions: {
44 [key: string]: any;
45 };
46 leaveRemoteOpen: boolean | 'fail';
47 maxConcurrency: number;
48 proxy?: string;
49 remoteOptions: RemoteOptions;
50 runInSync: boolean;
51 serveOnly: boolean;
52 serverPort: number;
53 serverUrl: string;
54 socketPort?: number;
55 socketTimeout?: number;
56 tunnel: string;
57 tunnelOptions: TunnelOptions & BrowserStackOptions & SeleniumOptions;
58 warnOnUnhandledRejection: boolean | RegExp;
59 warnOnUncaughtException: boolean | RegExp;
60}
61export interface ReporterDescriptor {
62 name: string;
63 options?: ReporterOptions;
64}
65export interface PluginDescriptor {
66 script: string;
67 useLoader?: boolean;
68 options?: any;
69}
70export interface Listener<T> {
71 (arg: T): void | PromiseLike<void>;
72}
73export interface ResourceConfig {
74 loader: LoaderDescriptor;
75 reporters: ReporterDescriptor[];
76 plugins: PluginDescriptor[];
77 suites: string[];
78 tsconfig?: string | false;
79 require: never;
80 requires: never;
81 scripts: never;
82}
83export interface BenchmarkConfig extends BenchmarkReporterOptions {
84 id: string;
85}
86export interface LoaderDescriptor {
87 script: string;
88 options?: {
89 internLoaderPath?: string;
90 [key: string]: any;
91 };
92}
93export interface EnvironmentSpec {
94 browserName: string;
95 [key: string]: any;
96}
97export interface RemoteOptions {
98 disableDomUpdates: boolean;
99}