Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: badeball/cypress-cucumber-preprocessor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v20.0.5
Choose a base ref
...
head repository: badeball/cypress-cucumber-preprocessor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v20.0.6
Choose a head ref
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 26, 2024

  1. Add allure-cypress to event handler examples

    badeball authored Apr 26, 2024
    Copy the full SHA
    1dc8a40 View commit details

Commits on Apr 28, 2024

  1. Merge branch 'master' of github.com:badeball/cypress-cucumber-preproc…

    …essor
    badeball committed Apr 28, 2024
    Copy the full SHA
    a6862bd View commit details

Commits on May 16, 2024

  1. Add cypress-split to event handler examples

    badeball authored May 16, 2024
    Copy the full SHA
    8b3f45d View commit details

Commits on Jun 6, 2024

  1. Search for configuration files using strategy project

    This fixes #1185 [1].
    
    [1] #1185
    badeball committed Jun 6, 2024
    Copy the full SHA
    b3836ec View commit details
  2. v20.0.6

    badeball committed Jun 6, 2024
    Copy the full SHA
    4d111e3 View commit details
Showing with 12 additions and 4 deletions.
  1. +4 −0 CHANGELOG.md
  2. +4 −0 docs/event-handlers.md
  3. +3 −3 lib/preprocessor-configuration.ts
  4. +1 −1 package.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@

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

## v20.0.6

- Search for configuration files using strategy `project`, fixes [#1185](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1185).

## v20.0.5

- Updated all dependencies, fixes [#1180](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1180).
4 changes: 4 additions & 0 deletions docs/event-handlers.md
Original file line number Diff line number Diff line change
@@ -19,10 +19,12 @@ For example, if you specify a handler for `after:screenshot` and override this p
The following plugins (non-exhaustive) are known to also define event handlers.

- [@bahmutov/cypress-code-coverage][@bahmutov/cypress-code-coverage]
- [allure-cypress][allure-cypress]
- [cypress-allure-plugin][cypress-allure-plugin]
- [cypress-cloud][cypress-cloud]
- [cypress-testrail][cypress-testrail]
- [cypress-xray-plugin][cypress-xray-plugin]
- [cypress-split][cypress-split]

If you use any of these plugins, then you need to consider [cypress-on-fix][cypress-on-fix], otherwise your mileage may vary.

@@ -105,8 +107,10 @@ export default defineConfig({
```

[@bahmutov/cypress-code-coverage]: https://github.com/bahmutov/cypress-code-coverage
[allure-cypress]: https://github.com/allure-framework/allure-js
[cypress-allure-plugin]: https://github.com/Shelex/cypress-allure-plugin
[cypress-cloud]: https://github.com/currents-dev/cypress-cloud
[cypress-testrail]: https://github.com/boxblinkracer/cypress-testrail
[cypress-xray-plugin]: https://github.com/Qytera-Gmbh/cypress-xray-plugin
[cypress-on-fix]: https://github.com/bahmutov/cypress-on-fix
[cypress-split]: https://github.com/bahmutov/cypress-split
6 changes: 3 additions & 3 deletions lib/preprocessor-configuration.ts
Original file line number Diff line number Diff line change
@@ -598,9 +598,9 @@ export function combineIntoConfiguration(
}

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

return result?.config;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@badeball/cypress-cucumber-preprocessor",
"version": "20.0.5",
"version": "20.0.6",
"author": "Jonas Amundsen",
"license": "MIT",
"homepage": "https://github.com/badeball/cypress-cucumber-preprocessor",