-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e12341
commit c021e6e
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export default class TestLoader { | ||
/** Instantiates a new TestLoader and loads the modules. */ | ||
static load(): void; | ||
|
||
/** | ||
* Can be overridden in order to customize the criteria for identifying test | ||
* modules. | ||
*/ | ||
shouldLoadModule(moduleName: string): boolean; | ||
|
||
moduleLoadFailure(moduleName: string, error: unknown): void; | ||
|
||
// Assumed private: | ||
// loadModules(): void; | ||
// listModules(): string[]; | ||
// listTestModules(): string[]; | ||
// require(moduleName: string): void; | ||
// unsee(moduleName: string): void; | ||
} | ||
|
||
export function addModuleExcludeMatcher( | ||
matcher: (moduleName: string) => boolean | ||
): void; | ||
|
||
export function addModuleIncludeMatcher( | ||
matcher: (moduleName: string) => boolean | ||
): void; |