FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

FEATURE: add new public api, tests and docs. Typed dataTableArgument by EgorBodnar · Pull Request #3047 · codeceptjs/CodeceptJS · GitHub

FEATURE: add new public api, tests and docs. Typed dataTableArgument - #3047

Merged
DavertMik merged 3 commits into
codeceptjs:3.xfrom
EgorBodnar:feat/gherkin_DataTableArgument_new_api_typed
Sep 19, 2021
Merged

FEATURE: add new public api, tests and docs. Typed dataTableArgument#3047
DavertMik merged 3 commits into
codeceptjs:3.xfrom
EgorBodnar:feat/gherkin_DataTableArgument_new_api_typed

Conversation

EgorBodnar commented Sep 16, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Motivation/Description of the PR

Lack of typing DataTableArgument, it is difficult to work with this class using TS.
Some methods for working with the cucumber-like table are not implemented.

Description of this PR, which problem it solves:

  • Typing an existing DataTableArgument class. Extending its API.
  • Added: rowsHash() and transpose() methods.
  • Added unit tests for new methods.
  • The BDD doc has been expanded and added examples of DataTableArgument usage.
  • Resolves #2081

Applicable plugins:

  • coverage

Type of change

  • 🚀 New functionality
  • 📋 Documentation changes/updates
  • 🔨 Markdown files fix - not related to source code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

Copy link
Copy Markdown
Contributor Author

@peterngtr @DavertMik review please.

Copy link
Copy Markdown
Contributor

Thanks, i will check it today

EgorBodnar changed the title FEATURE: add new public api tests and docs. Typed dataTableArgument FEATURE: add new public api, tests and docs. Typed dataTableArgument Sep 17, 2021

DavertMik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please move out DataTableArgument from the core class and export it independently via index.js

Comment thread lib/codecept.js Outdated

Copy link
Copy Markdown
Contributor Author

@DavertMik review again, please

Comment thread docs/bdd.md Outdated
DavertMik merged commit e4582c2 into codeceptjs:3.x Sep 19, 2021

Copy link
Copy Markdown
Contributor

Yes, that's it. Thank you!

EgorBodnar deleted the feat/gherkin_DataTableArgument_new_api_typed branch September 19, 2021 17:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Managing DataTables With headers

3 participants


Back | FazBrowse Home | New Git URL