prettier-playwright-msteams-report
Version:
A modified version of the Playwright MS Teams Messager
16 lines (15 loc) • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNotificationOutcome = void 0;
const getNotificationOutcome = (statuses) => {
const isSuccess = statuses.failed === 0;
const hasFlakyTests = statuses.flaky > 0;
if (isSuccess && !hasFlakyTests) {
return "passed";
}
if (isSuccess && hasFlakyTests) {
return "flaky";
}
return "failed";
};
exports.getNotificationOutcome = getNotificationOutcome;