UNPKG

@cucumber/cucumber

Version:

The official JavaScript implementation of Cucumber.

13 lines 784 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeRuntime = makeRuntime; const adapter_1 = require("./parallel/adapter"); const adapter_2 = require("./serial/adapter"); const coordinator_1 = require("./coordinator"); async function makeRuntime({ environment, logger, eventBroadcaster, sourcedPickles, newId, supportCodeLibrary, options, }) { const adapter = options.parallel > 0 ? new adapter_1.ChildProcessAdapter(environment, logger, eventBroadcaster, options, supportCodeLibrary) : new adapter_2.InProcessAdapter(eventBroadcaster, newId, options, supportCodeLibrary); return new coordinator_1.Coordinator(eventBroadcaster, newId, sourcedPickles, supportCodeLibrary, adapter); } //# sourceMappingURL=make_runtime.js.map