UNPKG

2.27 kBTypeScriptView Raw
1export { default } from 'mocha';
2export interface MochaOpts {
3 /**
4 * The `require` option is useful when you want to add or extend some
5 * basic functionality (WebdriverIO framework option).
6 */
7 require?: string[];
8 /**
9 * Use the given module(s) to compile files. Compilers will be included
10 * before requires (WebdriverIO framework option).
11 */
12 compilers?: string[];
13 /**
14 * Propagate uncaught errors?
15 */
16 allowUncaught?: boolean;
17 /**
18 * Force done callback or promise?
19 */
20 asyncOnly?: boolean;
21 /**
22 * Bail after first test failure?
23 */
24 bail?: boolean;
25 /**
26 * Check for global variable leaks?
27 */
28 checkLeaks?: boolean;
29 /**
30 * Delay root suite execution?
31 */
32 delay?: boolean;
33 /**
34 * Test filter given string.
35 */
36 fgrep?: string;
37 /**
38 * Tests marked only fail the suite?
39 */
40 forbidOnly?: boolean;
41 /**
42 * Pending tests fail the suite?
43 */
44 forbidPending?: boolean;
45 /**
46 * Full stacktrace upon failure?
47 */
48 fullTrace?: boolean;
49 /**
50 * Variables expected in global scope.
51 */
52 global?: string[];
53 /**
54 * Test filter given regular expression.
55 */
56 grep?: RegExp | string;
57 /**
58 * Invert test filter matches?
59 */
60 invert?: boolean;
61 /**
62 * Number of times to retry failed tests.
63 */
64 retries?: number;
65 /**
66 * Timeout threshold value.
67 */
68 timeout?: number | string;
69 /**
70 * Set test UI to one of the built-in test interfaces.
71 */
72 ui?: 'bdd' | 'tdd' | 'qunit' | 'exports';
73}
74export interface MochaError {
75 name: string;
76 message: string;
77 stack: string;
78 type: string;
79 expected: any;
80 actual: any;
81}
82export interface FrameworkMessage {
83 type: string;
84 payload?: any;
85 err?: MochaError;
86}
87export interface FormattedMessage {
88 type: string;
89 cid?: string;
90 specs?: string[];
91 uid?: string;
92 title?: string;
93 parent?: string;
94 fullTitle?: string;
95 pending?: boolean;
96 passed?: boolean;
97 file?: string;
98 duration?: number;
99 currentTest?: string;
100 error?: MochaError;
101 context?: any;
102 body?: string;
103}
104//# sourceMappingURL=types.d.ts.map
\No newline at end of file