eslint-plugin-sonarjs
Version:
18 lines (17 loc) • 671 B
TypeScript
export declare const DEFAULT_TEST_FILE_EXTENSIONS: string[];
/**
* Checks whether a file path matches a test file pattern.
*
* @param filePath the file path to test.
* @param extensions the allowed test file extensions.
* @returns true when the path looks like a test file.
*/
export declare function isTestFile(filePath: string, extensions?: string[]): boolean;
/**
* Checks whether a file path looks test-related.
*
* @param filePath the file path to test.
* @param extensions the allowed test file extensions.
* @returns true when the path looks test-related.
*/
export declare function isTestRelatedFile(filePath: string, extensions?: string[]): boolean;