UNPKG

jasmine-spec-reporter

Version:

Spec reporter for jasmine behavior-driven development framework

31 lines (23 loc) 698 B
Use jasmine-spec-reporter with TypeScript ========================================= ## Configuration ```typescript 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], })); ``` ## Example You can find an example in this directory: npm install npm test