UNPKG

prettier-playwright-msteams-report

Version:
16 lines (15 loc) 475 B
"use strict"; 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;