wallet-core/node_modules/tslint/lib/test.d.ts
2017-05-28 00:40:43 +02:00

25 lines
872 B
TypeScript

import { LintError } from "./test/lintError";
export interface TestOutput {
skipped: false;
errorsFromLinter: LintError[];
errorsFromMarkup: LintError[];
fixesFromLinter: string;
fixesFromMarkup: string;
markupFromLinter: string;
markupFromMarkup: string;
}
export interface SkippedTest {
skipped: true;
requirement: string;
}
export interface TestResult {
directory: string;
results: {
[fileName: string]: TestOutput | SkippedTest;
};
}
export declare function runTests(patterns: 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;