You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
491 B
TypeScript
17 lines
491 B
TypeScript
2 years ago
|
import {DisplayProcessor, SpecReporter, StacktraceOption} from "jasmine-spec-reporter";
|
||
|
import SuiteInfo = jasmine.SuiteInfo;
|
||
|
|
||
|
class CustomProcessor extends DisplayProcessor {
|
||
|
public displayJasmineStarted(info: SuiteInfo, log: string): string {
|
||
|
return `TypeScript ${log}`;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
jasmine.getEnv().clearReporters();
|
||
|
jasmine.getEnv().addReporter(new SpecReporter({
|
||
|
spec: {
|
||
|
displayStacktrace: StacktraceOption.NONE
|
||
|
},
|
||
|
customProcessors: [CustomProcessor],
|
||
|
}));
|