1 | type Arrayable<T> = T[] | T;
|
2 |
|
3 | export interface Suite {
|
4 | /** The relative file path */
|
5 | name: string;
|
6 | /** The absolute file path */
|
7 | file: string;
|
8 | }
|
9 |
|
10 | export interface Options {
|
11 | cwd: string;
|
12 | require: Arrayable<string>;
|
13 | ignore: Arrayable<string | RegExp>;
|
14 | }
|
15 |
|
16 | export interface Argv {
|
17 | dir: string;
|
18 | suites: Suite[];
|
19 | requires: boolean;
|
20 | }
|
21 |
|
22 | export function parse(dir?: string, pattern?: string|RegExp, opts?: Partial<Options>): Promise<Argv>;
|