UNPKG

jest-allure2-adapter

Version:
21 lines (20 loc) 949 B
/// <reference types="node" /> import { AllureCurrentApi } from './index'; import { AllureRuntime, ContentType, ExecutableItemWrapper } from 'allure-js-commons'; import { AttachmentOptions } from 'allure-js-commons/dist/src/model'; export declare class AllureCurrent implements AllureCurrentApi { private runtime; private runningExecutable; protected descriptionParts: string[]; constructor(runtime: AllureRuntime, runningExecutable: () => ExecutableItemWrapper); private action; attachment(name: string, content: Buffer | string, type?: ContentType | string | AttachmentOptions): void; addParameter(name: string, value: string): this; addParameters(...params: [string, any][]): this; description(description: string): this; descriptionHtml(description: string): this; addDescription(description: string): void; initDescription(): void; applyDescription(): void; getDescription(): string[]; }