Releases: bcaudan/jasmine-spec-reporter
Releases · bcaudan/jasmine-spec-reporter
v7.0.0
Bugfix
- 'SpecReporter' is not assignable to type 'Reporter | CustomReporter' #588
Breaking change
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;
};
}
v6.0.0
Feature
- Use colors/safe #538
Breaking change
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;
}
}
v5.0.2
v5.0.1
v5.0.0
v4.2.1
v4.2.0
v4.1.1
v4.1.0
v4.0.0
Breaking change
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;