UNPKG

allure-js-commons

Version:
38 lines (37 loc) 2.68 kB
/// <reference types="node" /> /// <reference types="node" /> import type { AttachmentOptions, Label, Link, ParameterOptions, Status, StatusDetails } from "./model.js"; import { type ContentType, LabelName, LinkType } from "./model.js"; import type { SyncStepContext } from "./sdk/runtime/types.js"; export declare const label: (name: LabelName | string, value: string) => void; export declare const labels: (...labelsList: Label[]) => void; export declare const link: (url: string, name?: string, type?: LinkType | string) => void; export declare const links: (...linksList: Link[]) => void; export declare const parameter: (name: string, value: string, options?: ParameterOptions) => void; export declare const description: (markdown: string) => void; export declare const descriptionHtml: (html: string) => void; export declare const displayName: (name: string) => void; export declare const historyId: (value: string) => void; export declare const testCaseId: (value: string) => void; export declare const attachment: (name: string, content: Buffer | Uint8Array | string, options: ContentType | string | AttachmentOptions) => void; export declare const globalAttachment: (name: string, content: Buffer | Uint8Array | string, options: ContentType | string | AttachmentOptions) => void; export declare const globalAttachmentPath: (name: string, path: string, options: ContentType | string | Omit<AttachmentOptions, "encoding">) => void; export declare const globalError: (details: StatusDetails) => void; export declare const attachTrace: (name: string, path: string) => void; export declare const attachmentPath: (name: string, path: string, options: ContentType | string | Omit<AttachmentOptions, "encoding">) => void; export declare const logStep: (name: string, status?: Status, error?: Error) => void; export declare const step: <T = void>(name: string, body: (context: SyncStepContext) => T) => T; export declare const issue: (url: string, name?: string) => void; export declare const tms: (url: string, name?: string) => void; export declare const allureId: (value: string) => void; export declare const epic: (name: string) => void; export declare const feature: (name: string) => void; export declare const story: (name: string) => void; export declare const suite: (name: string) => void; export declare const parentSuite: (name: string) => void; export declare const subSuite: (name: string) => void; export declare const owner: (name: string) => void; export declare const severity: (name: string) => void; export declare const layer: (name: string) => void; export declare const tag: (name: string) => void; export declare const tags: (...tagsList: string[]) => void;