UNPKG

1.37 kBTypeScriptView Raw
1import "karma";
2
3declare module "karma" {
4 interface ConfigOptions {
5 /**
6 * {@link https://github.com/mlex/karma-spec-reporter#configuration}
7 */
8 specReporter?: SpecReporterOptions | undefined;
9 }
10
11 interface SpecReporterOptions {
12 /** limit number of lines logged per test */
13 maxLogLines?: number | undefined;
14 /** do not print error summary */
15 suppressErrorSummary?: boolean | undefined;
16 /** do not print information about failed tests */
17 suppressFailed?: boolean | undefined;
18 /** do not print information about passed tests */
19 suppressPassed?: boolean | undefined;
20 /** do not print information about skipped tests */
21 suppressSkipped?: boolean | undefined;
22 /** do not print summary */
23 suppressSummary?: boolean | undefined;
24 /** print the time elapsed for each spec */
25 showSpecTiming?: boolean | undefined;
26 /** test would finish with error when a first fail occurs */
27 failFast?: boolean | undefined;
28 /** custom prefixes to use when reporting passed/failed/skipped prefixes */
29 prefixes?:
30 | {
31 success?: string | undefined;
32 failure?: string | undefined;
33 skipped?: string | undefined;
34 }
35 | undefined;
36 }
37}