UNPKG

cypress-xray-plugin

Version:

A Cypress plugin for uploading test results to Xray (test management for Jira)

19 lines (18 loc) 833 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransitionIssueCommand = void 0; const command_1 = require("../../../command"); class TransitionIssueCommand extends command_1.Command { constructor(parameters, logger, resolvedExecutionIssueKey) { super(parameters, logger); this.resolvedExecutionIssueKey = resolvedExecutionIssueKey; } async computeResult() { const resolvedExecutionIssueKey = await this.resolvedExecutionIssueKey.compute(); this.logger.message("info", `Transitioning test execution issue ${resolvedExecutionIssueKey}`); await this.parameters.jiraClient.transitionIssue(resolvedExecutionIssueKey, { transition: this.parameters.transition, }); } } exports.TransitionIssueCommand = TransitionIssueCommand;