Skip to content

Commit

Permalink
exporting value-checker utility functions
Browse files Browse the repository at this point in the history
Many of the internal libraries use these utility functions. In case
users want to customize code, they may want to reuse some parts of the
original implementation, and as such, they would need these functions.

More details: cucumber#2290

Signed-off-by: Antal Nemes <antal.nemes.hu@gmail.com>
  • Loading branch information
furiel committed Jun 20, 2023
1 parent b48d666 commit 0b094c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Please see [CONTRIBUTING.md](./CONTRIBUTING.md) on how to contribute to Cucumber

## [Unreleased]
### Added
- value-checker utility functions gets exported ([#2290](https://github.com/cucumber/cucumber-js/issues/2290))
- New option for JUnit test suite name to be passed in `formatOptions` ([#2265](https://github.com/cucumber/cucumber-js/issues/2265))
- Logging and calculation is decoupled in `logFailedTestCases()` for easier customization ([#2290](https://github.com/cucumber/cucumber-js/issues/2290))

Expand Down
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,9 @@ export const Runtime = deprecate(
'`Runtime` is deprecated, use `runCucumber` instead; see https://github.com/cucumber/cucumber-js/blob/main/docs/deprecations.md'
)
export { INewRuntimeOptions, IRuntimeOptions } from './runtime'

export {
doesHaveValue,
doesNotHaveValue,
valueOrDefault,
} from './value_checker'

0 comments on commit 0b094c1

Please sign in to comment.