Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

fix(config): cucumberOpts.require should be an optional Array of strings #3817

Merged
merged 6 commits into from
Dec 14, 2016

Conversation

mdasberg
Copy link
Contributor

fixes #3816

@@ -553,7 +553,7 @@ export interface Config {
/**
* Require files before executing the features.
*/
require?: string;
require?: Array<string>;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Prefer string[] over Array<string>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@wswebcreation
Copy link
Contributor

@mdasberg ,

Can you also check this issue? #3822. It also refers to theformat in line 565

@calendir
Copy link

Since you're fixing things could you fix a couple more? :)

  • tags should also be string[] | string
  • coffee, dryRun, noSnippets are not Cucumber CLI options (at least not anymore) so IMO they should be removed

@mdasberg
Copy link
Contributor Author

Will do that.

dryRun is still a cucumber.js option, but protractor-cucumber-framework does not convert dryRun to --dry-run but converts it to --dryRun, which does not match, hence it will not work.

noSnippets?: any;
dryRun?: any;
format?: string[] | string;
// Other options include `dryRun`
Copy link
Member

Choose a reason for hiding this comment

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

instead of having

// Other options include `dryRun`

could we have a definition?

/**
 * use dry run for ...
 */
dryRun?: boolean;

Copy link
Member

@cnishina cnishina left a comment

Choose a reason for hiding this comment

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

Thanks for updating the PR. I have one more quick fix.

@cnishina cnishina merged commit 5a12d69 into angular:master Dec 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Config definition for cucumberOpts.require
5 participants