UNPKG

1.61 kBTypeScriptView Raw
1import { Config } from './config';
2export declare class ConfigParser {
3 private config_;
4 constructor();
5 /**
6 * Resolve a list of file patterns into a list of individual file paths.
7 *
8 * @param {Array.<string> | string} patterns
9 * @param {=boolean} opt_omitWarnings Whether to omit did not match warnings
10 * @param {=string} opt_relativeTo Path to resolve patterns against
11 *
12 * @return {Array} The resolved file paths.
13 */
14 static resolveFilePatterns(patterns: string[] | string, opt_omitWarnings?: boolean, opt_relativeTo?: string): string[];
15 /**
16 * Returns only the specs that should run currently based on `config.suite`
17 *
18 * @return {Array} An array of globs locating the spec files
19 */
20 static getSpecs(config: Config): string[];
21 /**
22 * Add the options in the parameter config to this runner instance.
23 *
24 * @private
25 * @param {Object} additionalConfig
26 * @param {string} relativeTo the file path to resolve paths against
27 */
28 private addConfig_(additionalConfig, relativeTo);
29 /**
30 * Public function specialized towards merging in a file's config
31 *
32 * @public
33 * @param {String} filename
34 */
35 addFileConfig(filename: string): ConfigParser;
36 /**
37 * Public function specialized towards merging in config from argv
38 *
39 * @public
40 * @param {Object} argv
41 */
42 addConfig(argv: any): ConfigParser;
43 /**
44 * Public getter for the final, computed config object
45 *
46 * @public
47 * @return {Object} config
48 */
49 getConfig(): Config;
50}