Skip to content

Commit

Permalink
fix: Enforce relative paths for features. Resolves #326 (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquilax authored and Igor Muchychka committed Dec 14, 2017
1 parent c4cebb5 commit 3187b1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/runner.js
Expand Up @@ -167,6 +167,11 @@ module.exports = class Runner {
}
})

// enforce relative paths so path.join() works on Windows
this.featureFiles = this.featureFiles.map((currentPath) => {
return path.isAbsolute(currentPath) ? path.relative(process.cwd(), currentPath) : currentPath
})

const dummyPaths = this.getFeatureDirectories().map(srcPath => path.join(dummyTestModulesFolder, srcPath))

this.generateDummyTestModules()
Expand Down

0 comments on commit 3187b1a

Please sign in to comment.