Real time console spec reporter for jasmine testing framework
Update signature of CustomReporterResult
to fix collision with new jasmine properties
Before:
export interface CustomReporterResult extends jasmine.CustomReporterResult {
duration?: string;
}
Now:
export interface CustomReporterResult extends jasmine.CustomReporterResult {
_jsr?: {
formattedDuration?: string;
};
}
String prototype does not contain color properties anymore, colors must now be applied with the new theme
component available as a field in custom display processors.
Before:
class MyProcessor extends DisplayProcessor {
public displaySuccessfulSpec(spec: CustomReporterResult, log: string): string {
return "OK ".successful + log;
}
}
Now:
class MyProcessor extends DisplayProcessor {
public displaySuccessfulSpec(spec: CustomReporterResult, log: string): string {
return this.theme.successful("OK ") + log;
}
}
displayStacktrace
options now take a value among none
, raw
and pretty
.
It only impacts TypeScript integrations, DisplayProcessor
methods signature now use string
instead of String
.
Before:
displaySuite(suite: CustomReporterResult, log: String): String;
Now:
displaySuite(suite: CustomReporterResult, log: string): string;