Skip to content

Commit bfcac12

Browse files
committed
Remove path resolver for relative paths in world.ts
1 parent 8c82b4d commit bfcac12

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

features/support/world.ts

+6-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import colors from 'colors/safe'
77
import fs from 'fs'
88
import path from 'path'
99
import VError from 'verror'
10-
import _ from 'lodash'
1110
import ndjsonParse from 'ndjson-parse'
1211
import { messages } from '@cucumber/messages'
1312

@@ -35,19 +34,12 @@ export class World {
3534

3635
async run(executablePath: string, inputArgs: string[]): Promise<void> {
3736
const messageFilename = 'message.ndjson'
38-
const args = ['node', executablePath]
39-
.concat(inputArgs, [
40-
'--backtrace',
41-
'--predictable-ids',
42-
'--format',
43-
`message:${messageFilename}`,
44-
])
45-
.map((arg) => {
46-
if (_.includes(arg, '/')) {
47-
return path.normalize(arg)
48-
}
49-
return arg
50-
})
37+
const args = ['node', executablePath].concat(inputArgs, [
38+
'--backtrace',
39+
'--predictable-ids',
40+
'--format',
41+
`message:${messageFilename}`,
42+
])
5143
const cwd = this.tmpDir
5244

5345
let result: IRunResult

0 commit comments

Comments
 (0)