config.d.mts 1.1 KB

123456789101112131415161718
  1. import { IConfigurationWithGlobalOptions, ICoverageConfiguration, TestConfiguration } from '../config.cjs';
  2. /** Loads the default config based on the process working directory. */
  3. export declare function loadDefaultConfigFile(): Promise<ResolvedTestConfiguration>;
  4. /** Loads a specific config file by the path, throwing if loading fails. */
  5. export declare function tryLoadConfigFile(path: string): Promise<ResolvedTestConfiguration>;
  6. export declare class ResolvedTestConfiguration implements IConfigurationWithGlobalOptions {
  7. readonly path: string;
  8. readonly tests: TestConfiguration[];
  9. readonly coverage: ICoverageConfiguration | undefined;
  10. /** Directory name the configuration file resides in. */
  11. readonly dir: string;
  12. static load(config: IConfigurationWithGlobalOptions, path: string): Promise<ResolvedTestConfiguration>;
  13. protected constructor(config: IConfigurationWithGlobalOptions, path: string);
  14. /**
  15. * Gets the resolved extension development path for the test configuration.
  16. */
  17. extensionDevelopmentPath(test: TestConfiguration): string[];
  18. }