UNPKG

803 BTypeScriptView Raw
1export default class TestLoader {
2 /** Instantiates a new TestLoader and loads the modules. */
3 static load(): void;
4
5 /**
6 * Can be overridden in order to customize the criteria for identifying test
7 * modules.
8 */
9 shouldLoadModule(moduleName: string): boolean;
10
11 moduleLoadFailure(moduleName: string, error: unknown): void;
12
13 /** Use `TestLoader.load()` static method instead. */
14 protected constructor();
15
16 // Assumed private:
17 // loadModules(): void;
18 // listModules(): string[];
19 // listTestModules(): string[];
20 // require(moduleName: string): void;
21 // unsee(moduleName: string): void;
22}
23
24export function addModuleExcludeMatcher(
25 matcher: (moduleName: string) => boolean
26): void;
27
28export function addModuleIncludeMatcher(
29 matcher: (moduleName: string) => boolean
30): void;