@empiricalrun/reporter
Advanced tools
Comparing version 0.17.9 to 0.17.10
# @empiricalrun/reporter | ||
## 0.17.10 | ||
### Patch Changes | ||
- bff7e8b: fix: drop test complete event support | ||
## 0.17.9 | ||
@@ -4,0 +10,0 @@ |
@@ -14,3 +14,2 @@ import { BaseReportSource } from "../sources/base"; | ||
sendEndMessage(): Promise<void>; | ||
sendTestsCompleteMessage(): Promise<void>; | ||
private send; | ||
@@ -17,0 +16,0 @@ private formatLink; |
@@ -165,6 +165,2 @@ "use strict"; | ||
} | ||
async sendTestsCompleteMessage() { | ||
const message = this.testResultsMessage({ withReport: false }); | ||
await this.send({ message, messageType: "tests-complete" }); | ||
} | ||
async send({ message, messageType, }) { | ||
@@ -180,3 +176,3 @@ const pull_request = (0, utils_1.getGhEventPrLink)(this.projectName); | ||
pull_request: pull_request, | ||
resultsSummary: messageType === "tests-complete" || messageType === "run-end" | ||
resultsSummary: messageType === "run-end" | ||
? this.reportSource.resultsSummary() | ||
@@ -183,0 +179,0 @@ : undefined, |
@@ -16,8 +16,6 @@ export declare enum WorkflowType { | ||
sendMessageForError(): Promise<void>; | ||
sendTestsCompleteMessage(): Promise<void>; | ||
} | ||
export declare enum MESSAGE_TYPE { | ||
START = "start", | ||
END = "end", | ||
TESTS_COMPLETE = "tests-complete" | ||
END = "end" | ||
} | ||
@@ -24,0 +22,0 @@ export declare enum REPORT_TYPE { |
@@ -13,3 +13,2 @@ "use strict"; | ||
MESSAGE_TYPE["END"] = "end"; | ||
MESSAGE_TYPE["TESTS_COMPLETE"] = "tests-complete"; | ||
})(MESSAGE_TYPE || (exports.MESSAGE_TYPE = MESSAGE_TYPE = {})); | ||
@@ -16,0 +15,0 @@ var REPORT_TYPE; |
@@ -67,6 +67,2 @@ "use strict"; | ||
} | ||
case types_1.MESSAGE_TYPE.TESTS_COMPLETE: { | ||
await Promise.all(sinks.map((s) => s.sendTestsCompleteMessage())); | ||
break; | ||
} | ||
case types_1.MESSAGE_TYPE.END: { | ||
@@ -83,3 +79,3 @@ if (!(await reportSource.reportExists())) { | ||
default: { | ||
throw Error(`message type (first arg) must be "start", "tests-complete" or "end".`); | ||
throw Error(`message type (first arg) must be "start" or "end".`); | ||
} | ||
@@ -86,0 +82,0 @@ } |
{ | ||
"name": "@empiricalrun/reporter", | ||
"version": "0.17.9", | ||
"version": "0.17.10", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "registry": "https://registry.npmjs.org/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
75251
1609