cypress-xray-plugin
Version:
A Cypress plugin for uploading test results to Xray (test management for Jira)
18 lines (17 loc) • 1.18 kB
TypeScript
import type { EvidenceCollection, IterationParameterCollection, PluginEventEmitter, ScreenshotCollection } from "../../context";
import type { CypressRunResult } from "../../types/cypress";
import type { ClientCombination, InternalCypressXrayPluginOptions } from "../../types/plugin";
import type { ExecutableGraph } from "../../util/graph/executable-graph";
import type { Logger } from "../../util/logging";
import type { Command } from "../command";
declare function addUploadCommands(results: CypressRunResult, projectRoot: string, options: InternalCypressXrayPluginOptions, clients: ClientCombination, evidenceCollection: EvidenceCollection, iterationParameterCollection: IterationParameterCollection, screenshotCollection: ScreenshotCollection, eventEmitter: PluginEventEmitter, graph: ExecutableGraph<Command>, logger: Logger): Promise<void>;
/**
* Workaround until module mocking becomes a stable feature. The current approach allows replacing
* the function with a mocked one.
*
* @see https://nodejs.org/docs/latest-v23.x/api/test.html#mockmodulespecifier-options
*/
declare const _default: {
addUploadCommands: typeof addUploadCommands;
};
export default _default;