19 lines
775 B
TypeScript
19 lines
775 B
TypeScript
import { LintError } from "./test/lintError";
|
|
export interface TestResult {
|
|
directory: string;
|
|
results: {
|
|
[fileName: string]: {
|
|
errorsFromLinter: LintError[];
|
|
errorsFromMarkup: LintError[];
|
|
fixesFromLinter: string;
|
|
fixesFromMarkup: string;
|
|
markupFromLinter: string;
|
|
markupFromMarkup: string;
|
|
};
|
|
};
|
|
}
|
|
export declare function runTests(pattern: string, rulesDirectory?: string | string[]): TestResult[];
|
|
export declare function runTest(testDirectory: string, rulesDirectory?: string | string[]): TestResult;
|
|
export declare function consoleTestResultsHandler(testResults: TestResult[]): boolean;
|
|
export declare function consoleTestResultHandler(testResult: TestResult): boolean;
|