UNPKG

@mmisty/cypress-allure-adapter

Version:

cypress allure adapter to generate allure results during tests execution (Allure TestOps compatible)

26 lines (25 loc) 1.28 kB
import type { ContentType } from '../common/types'; export declare const wsPath = "/__cypress/allure_messages/"; export declare const ENV_WS = "allureWsPort"; export declare const packageLog = "[cypress-allure-adapter]"; export declare const logWithPackage: (level: "log" | "error" | "warn", message: string) => void; type Message = { data: any; id: number; }; export declare class MessageQueue { private id; private messages; enqueue(data: any): void; dequeueAll(): Message[] | undefined; } export declare const tmsIssueUrl: (env: Record<string, string>, value: string, type: "issue" | "tms") => string; export declare const tmsIssueId: (env: Record<string, string>, value: string, type: "issue" | "tms") => string | undefined; export declare const descriptionId: (env: Record<string, string>, value: string, type: "issue" | "tms", desc?: string) => string; export declare const extname: (path: string) => string; export declare const basename: (path: string) => string; export declare function delay(ms: number): Promise<void>; export declare const getContentType: (file: string) => ContentType; export declare const swapItems: (arr: unknown[], index1: number, index2: number) => void; export declare const baseUrlFromUrl: (url: string) => string; export {};