File size: 441 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type Arrayable<T> = T[] | T;

export interface Suite {
	/** The relative file path */
	name: string;
	/** The absolute file path */
	file: string;
}

export interface Options {
	cwd: string;
	require: Arrayable<string>;
	ignore: Arrayable<string | RegExp>;
}

export interface Argv {
	dir: string;
	suites: Suite[];
	requires: boolean;
}

export function parse(dir?: string, pattern?: string|RegExp, opts?: Partial<Options>): Promise<Argv>;