Skip to content

Commit 2f31b50

Browse files
committed
Comment for prosperity
1 parent 04f0ac4 commit 2f31b50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/add-cucumber-preprocessor-plugin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,11 @@ export default async function addCucumberPreprocessorPlugin(
431431

432432
const propertyName = "specPattern" in config ? "specPattern" : "testFiles";
433433

434+
/**
435+
* The preprocessor needs the original value at a later point in order to determine the implicit
436+
* integration folder correctly. Otherwise, scoping test files using tags would affect definition
437+
* resolvement and yield surprising results.
438+
*/
434439
mutateConfigObjectPreservingly(
435440
config,
436441
propertyName as keyof ICypressConfiguration,

0 commit comments

Comments
 (0)