wallet-core/node_modules/tslint/lib/test.d.ts

25 lines
872 B
TypeScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
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;