@cucumber/cucumber
Version:
The official JavaScript implementation of Cucumber.
19 lines (18 loc) • 899 B
TypeScript
import { EventEmitter } from 'node:events';
import { IdGenerator } from '@cucumber/messages';
import { IRunOptionsRuntime } from '../api';
import { ILogger, IRunEnvironment } from '../environment';
import { SourcedPickle } from '../assemble';
import { SupportCodeLibrary } from '../support_code_library_builder/types';
import { FormatOptions } from '../formatter';
import { Runtime } from './types';
export declare function makeRuntime({ environment, logger, eventBroadcaster, sourcedPickles, newId, supportCodeLibrary, options, snippetOptions, }: {
environment: IRunEnvironment;
logger: ILogger;
eventBroadcaster: EventEmitter;
newId: IdGenerator.NewId;
sourcedPickles: ReadonlyArray<SourcedPickle>;
supportCodeLibrary: SupportCodeLibrary;
options: IRunOptionsRuntime;
snippetOptions: Pick<FormatOptions, 'snippetInterface' | 'snippetSyntax'>;
}): Promise<Runtime>;