Skip to content

Commit b3836ec

Browse files
committed
Search for configuration files using strategy project
This fixes #1185 [1]. [1] #1185
1 parent 8b3f45d commit b3836ec

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Unreleased
6+
7+
- Search for configuration files using strategy `project`, fixes [#1185](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1185).
8+
59
## v20.0.5
610

711
- Updated all dependencies, fixes [#1180](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1180).

lib/preprocessor-configuration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,9 @@ export function combineIntoConfiguration(
598598
}
599599

600600
async function cosmiconfigResolver(projectRoot: string) {
601-
const result = await cosmiconfig("cypress-cucumber-preprocessor").search(
602-
projectRoot
603-
);
601+
const result = await cosmiconfig("cypress-cucumber-preprocessor", {
602+
searchStrategy: "project",
603+
}).search(projectRoot);
604604

605605
return result?.config;
606606
}

0 commit comments

Comments
 (0)