Skip to content

Commit

Permalink
Remove public members And and But
Browse files Browse the repository at this point in the history
These aren't available in cucumber-js and therefore won't be here
either. This fixes #821.
  • Loading branch information
badeball committed Sep 16, 2022
1 parent a116edd commit e3658ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file.

- Add a very rudimentary way of diagnosing validity of steps, IE. whether each step is matching one, and only one, step definition, fixes [#754](https://github.com/badeball/cypress-cucumber-preprocessor/issues/754).

- Remove `And` and `But` from the public API, fixes [#821](https://github.com/badeball/cypress-cucumber-preprocessor/issues/821).

## v12.2.0

- Total execution time is correctly shown in HTML reports, fixes [#813](https://github.com/badeball/cypress-cucumber-preprocessor/issues/813).
Expand Down
8 changes: 1 addition & 7 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ export function defineStep<T extends unknown[]>(
throw createUnimplemented();
}

export {
defineStep as Given,
defineStep as When,
defineStep as Then,
defineStep as And,
defineStep as But,
};
export { defineStep as Given, defineStep as When, defineStep as Then };

export function Step(
world: Mocha.Context,
Expand Down
2 changes: 0 additions & 2 deletions lib/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ export {
defineStep as Given,
defineStep as When,
defineStep as Then,
defineStep as And,
defineStep as But,
defineStep,
runStepDefininition as Step,
defineParameterType,
Expand Down

0 comments on commit e3658ad

Please sign in to comment.