Skip to content
Permalink
Browse files
fix(cucumber): Corrected how feature file paths are compared on Windows
  • Loading branch information
jan-molak committed Apr 24, 2019
1 parent 23fe62f commit 2635bedeecaaee9c87f8c031a72c9ab304ba4e2c
Showing with 2 additions and 1 deletion.
  1. +2 −1 packages/cucumber/src/listeners/CucumberEventProtocolAdapter.ts
@@ -85,7 +85,8 @@ export function cucumberEventProtocolAdapter({ notifier, mapper, cache }: Depend
stepLocations.actionLocation && ! stepLocations.sourceLocation,
matching = (location: StepLocations) =>
(step: Step) =>
step.location.path.value === location.sourceLocation.uri && step.location.line === location.sourceLocation.line;
step.location.path.equals(new Path(location.sourceLocation.uri)) &&
step.location.line === location.sourceLocation.line;

return stepsLocations.map(location =>
isAHook(location)

0 comments on commit 2635bed

Please sign in to comment.