Skip to content

Commit

Permalink
Remove path resolver for relative paths in world.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dawn-minion committed Nov 2, 2020
1 parent 8c82b4d commit bfcac12
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions features/support/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -35,19 +34,12 @@ export class World {

async run(executablePath: string, inputArgs: string[]): Promise<void> {
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
Expand Down

0 comments on commit bfcac12

Please sign in to comment.