///
import { AllureGroup, AllureRuntime, AllureStep, AttachmentOptions, AllureTest, Category, ExecutableItemWrapper } from 'allure-js-commons';
import type * as jest from '@jest/types';
import JestAllureInterface, { ContentType, Labels } from './jest-allure-interface';
export default class AllureReporter {
currentExecutable: ExecutableItemWrapper | null;
private readonly allureRuntime;
private readonly suites;
private readonly steps;
private readonly tests;
private readonly jiraUrl;
private readonly tmsUrl;
private readonly categories;
private readonly testNames;
private readonly addCodeInReport;
labels: Labels[];
constructor(options: {
allureRuntime: AllureRuntime;
jiraUrl?: string;
tmsUrl?: string;
environmentInfo?: Record;
categories?: Category[];
labels: Labels[];
addCodeInReport?: boolean;
});
getImplementation(): JestAllureInterface;
get currentSuite(): AllureGroup | null;
get currentStep(): AllureStep | null;
get currentTest(): AllureTest | null;
environmentInfo(info?: Record): void;
startTestFile(suiteName?: string): void;
endTestFile(): void;
startSuite(suiteName?: string, tests?: Array> | null): void;
endSuite(): void;
startHook(type: jest.Circus.HookType): void;
endHook(error?: Error): void;
startTestCase(test: jest.Circus.TestEntry, state: jest.Circus.State, testPath: string): void;
passTestCase(): void;
pendingTestCase(test: jest.Circus.TestEntry): void;
failTestCase(error: Error | any): void;
endTest(): void;
writeAttachment(content: Buffer | string, type: ContentType | string | AttachmentOptions): string;
pushStep(step: AllureStep): void;
popStep(): void;
pushTest(test: AllureTest): void;
popTest(): void;
pushSuite(suite: AllureGroup): void;
popSuite(): void;
private handleError;
private extractCodeDetails;
private extractDocBlock;
private setAllureReportPragmas;
private setAllureLabelsAndLinks;
private addSuiteLabelsToTestCase;
private attachLabelsInConcurrent;
private collectTestParentNames;
private removeANSITags;
}