diff --git a/features/support/world.ts b/features/support/world.ts index 02401afde4..855a4ea6f3 100644 --- a/features/support/world.ts +++ b/features/support/world.ts @@ -7,7 +7,6 @@ import colors from 'colors/safe' import fs from 'fs' import path from 'path' import VError from 'verror' -import _ from 'lodash' import ndjsonParse from 'ndjson-parse' import { messages } from '@cucumber/messages' @@ -35,19 +34,12 @@ export class World { async run(executablePath: string, inputArgs: string[]): Promise { const messageFilename = 'message.ndjson' - const args = ['node', executablePath] - .concat(inputArgs, [ - '--backtrace', - '--predictable-ids', - '--format', - `message:${messageFilename}`, - ]) - .map((arg) => { - if (_.includes(arg, '/')) { - return path.normalize(arg) - } - return arg - }) + const args = ['node', executablePath].concat(inputArgs, [ + '--backtrace', + '--predictable-ids', + '--format', + `message:${messageFilename}`, + ]) const cwd = this.tmpDir let result: IRunResult