@cucumber/cucumber
Version:
The official JavaScript implementation of Cucumber.
18 lines (17 loc) • 860 B
TypeScript
import { EventEmitter } from 'node:events';
import { IdGenerator } from '@cucumber/messages';
import { AssembledTestCase } from '../assemble';
import { SupportCodeLibrary } from '../support_code_library_builder/types';
import { RuntimeOptions } from './index';
export declare class Worker {
private readonly workerId;
private readonly eventBroadcaster;
private readonly newId;
private readonly options;
private readonly supportCodeLibrary;
private readonly runTestRunHooks;
constructor(workerId: string | undefined, eventBroadcaster: EventEmitter, newId: IdGenerator.NewId, options: RuntimeOptions, supportCodeLibrary: SupportCodeLibrary);
runBeforeAllHooks(): Promise<void>;
runTestCase({ gherkinDocument, pickle, testCase }: AssembledTestCase, failing: boolean): Promise<boolean>;
runAfterAllHooks(): Promise<void>;
}