jasmine-spec-reporter
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -17,3 +17,3 @@ "use strict"; | ||
var log = "foo"; | ||
var result = processor.displaySpecStarted({ id: "bar", description: "bar", fullName: "bar" }, log); | ||
var result = processor.displaySpecStarted({ id: "bar", description: "bar", fullName: "bar", duration: null, properties: null }, log); | ||
isDisplayed = isDisplayed || result !== log; | ||
@@ -97,2 +97,4 @@ }); | ||
id: name, | ||
properties: null, | ||
duration: null | ||
}; | ||
@@ -99,0 +101,0 @@ this.suiteHierarchy.push(topLevelSuite); |
@@ -35,3 +35,5 @@ "use strict"; | ||
ExecutionMetrics.prototype.stopSpec = function (result) { | ||
result.duration = this.formatDuration((new Date()).getTime() - this.specStartTime); | ||
result._jsr = { | ||
formattedDuration: this.formatDuration((new Date()).getTime() - this.specStartTime) | ||
}; | ||
}; | ||
@@ -38,0 +40,0 @@ ExecutionMetrics.prototype.formatDuration = function (durationInMs) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StacktraceOption = exports.DisplayProcessor = exports.SpecReporter = void 0; | ||
var spec_reporter_1 = require("./spec-reporter"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "SpecReporter", { enumerable: true, get: function () { return spec_reporter_1.SpecReporter; } }); |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -25,3 +27,3 @@ function __() { this.constructor = d; } | ||
SpecDurationsProcessor.displayDuration = function (spec, log) { | ||
return log + " (" + spec.duration + ")"; | ||
return log + " (" + (spec._jsr && spec._jsr.formattedDuration) + ")"; | ||
}; | ||
@@ -28,0 +30,0 @@ SpecDurationsProcessor.prototype.displaySuccessfulSpec = function (spec, log) { |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -7,3 +7,5 @@ /// <reference types="jasmine" /> | ||
export interface CustomReporterResult extends jasmine.CustomReporterResult { | ||
duration?: string; | ||
_jsr?: { | ||
formattedDuration?: string; | ||
}; | ||
} | ||
@@ -10,0 +12,0 @@ export interface ExecutedSpecs { |
@@ -108,2 +108,4 @@ "use strict"; | ||
id: "Non-spec failure", | ||
duration: null, | ||
properties: null | ||
}; | ||
@@ -110,0 +112,0 @@ }; |
@@ -0,1 +1,27 @@ | ||
# 7.0.0 | ||
## Bugfix | ||
* 'SpecReporter' is not assignable to type 'Reporter | CustomReporter' [#588](https://github.com/bcaudan/jasmine-spec-reporter/pull/588) | ||
## Breaking change | ||
Update signature of `CustomReporterResult` to fix collision with new jasmine properties | ||
**Before:** | ||
```ts | ||
export interface CustomReporterResult extends jasmine.CustomReporterResult { | ||
duration?: string; | ||
} | ||
``` | ||
**Now:** | ||
```ts | ||
export interface CustomReporterResult extends jasmine.CustomReporterResult { | ||
_jsr?: { | ||
formattedDuration?: string; | ||
}; | ||
} | ||
``` | ||
# 6.0.0 | ||
@@ -2,0 +28,0 @@ |
{ | ||
"name": "jasmine-spec-reporter", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Spec reporter for jasmine behavior-driven development framework", | ||
@@ -50,8 +50,8 @@ "main": "built/main.js", | ||
"devDependencies": { | ||
"@types/jasmine": "3.5.14", | ||
"@types/node": "14.11.1", | ||
"codecov": "3.7.2", | ||
"diff": "4.0.2", | ||
"jasmine": "3.6.1", | ||
"jasmine-core": "3.6.0", | ||
"@types/jasmine": "3.6.9", | ||
"@types/node": "14.14.37", | ||
"codecov": "3.8.1", | ||
"diff": "5.0.0", | ||
"jasmine": "3.7.0", | ||
"jasmine-core": "3.7.1", | ||
"nyc": "15.1.0", | ||
@@ -61,4 +61,4 @@ "protractor": "7.0.0", | ||
"tslint-eslint-rules": "5.4.0", | ||
"typescript": "3.9.7" | ||
"typescript": "4.2.4" | ||
} | ||
} |
jasmine-spec-reporter | ||
===================== | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/bcaudan/jasmine-spec-reporter.svg)](https://greenkeeper.io/) | ||
[![Dependabot](https://api.dependabot.com/badges/status?host=github&repo=bcaudan/jasmine-spec-reporter)](https://api.dependabot.com/badges/status?host=github&repo=bcaudan/jasmine-spec-reporter) | ||
[![Build Status](https://travis-ci.org/bcaudan/jasmine-spec-reporter.svg?branch=master)](https://travis-ci.org/bcaudan/jasmine-spec-reporter) | ||
@@ -6,0 +6,0 @@ [![codecov](https://codecov.io/gh/bcaudan/jasmine-spec-reporter/branch/master/graph/badge.svg)](https://codecov.io/gh/bcaudan/jasmine-spec-reporter) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
219848
1488