jest-allure2-adapter
Version:
Allure 2 Adapter for jest
21 lines (20 loc) • 949 B
TypeScript
/// <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[];
}