From e3658ad3a0d50bd826ec080edbf49621febb541a Mon Sep 17 00:00:00 2001 From: Jonas Amundsen Date: Fri, 16 Sep 2022 18:53:18 +0200 Subject: [PATCH] Remove public members `And` and `But` These aren't available in cucumber-js and therefore won't be here either. This fixes #821. --- CHANGELOG.md | 2 ++ lib/index.ts | 8 +------- lib/methods.ts | 2 -- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb418d4a..847e8b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/lib/index.ts b/lib/index.ts index 0fea2ec1..f6aa3681 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -62,13 +62,7 @@ export function defineStep( 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, diff --git a/lib/methods.ts b/lib/methods.ts index 95b7752a..a47204e1 100644 --- a/lib/methods.ts +++ b/lib/methods.ts @@ -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,