Skip to content

Added DataTable and DataTableArgument types #3492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Added DataTable and DataTableArgument types #3492

wants to merge 2 commits into from

Conversation

zaxovaiko
Copy link
Contributor

Motivation/Description of the PR

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@zaxovaiko
Copy link
Contributor Author

Hey, could you please review my changes and tell me if you need something more?

Copy link
Member

@Arhell Arhell left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@DavertMik DavertMik left a comment

Choose a reason for hiding this comment

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

This typings are too strict

/**
* Datatable class to provide data driven testing
*/
class DataTable {
/** @param {Array<*>} array */
/** @param {Array<DataTableArgument>} array */
constructor(array) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is correct
As you can actually pass any array into DataTable
DataTableArgument works only with Gherkin tables while DataTable works with classical tables as well

@DavertMik DavertMik closed this Nov 25, 2022
@DavertMik
Copy link
Contributor

I'm sorry it took me that long to review this PR,
I could not get a free time as due to constant missile attacks from russia I had power & internet glitches, as well as extra work on my main product Testomat.io.

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.

[feature-request] export cucumber-related types
3 participants