This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
cucumberOpts incompatible type #3822
Comments
@wswebcreation So far it fixes only 'require'. I've been writing about 'require' and 'format'. |
Ok, clear, missed that, sorry |
mdasberg
added a commit
to mdasberg/protractor
that referenced
this issue
Dec 14, 2016
Should we have |
I don't think this hurts as long as it is kept up to date. We also recently merged a docs for cucumber: #3674. Probably we should make the config more flexible with something like:
|
Also, at least this issue has been fixed with: https://github.com/angular/protractor/blob/master/lib/config.ts#L558 Leaving it open to discuss the above comment. |
cnishina
added a commit
to cnishina/protractor
that referenced
this issue
Jan 3, 2017
cnishina
added a commit
to cnishina/protractor
that referenced
this issue
Jan 4, 2017
Per discussion offline with Julie:
|
cnishina
added a commit
that referenced
this issue
Jan 5, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I'm using protractor 4.0.13, typescript 2.1.4 and cucumber 1.3.1.
In my config.ts I've got such config in cucumberOpts:
cucumberOpts: { require: [ '../steps/**/*Steps.js', '../support/hooks.js' ], format: [ 'pretty', 'json:report.json' ] },
Every time when I run tests I got such error:
config/config.ts(3,12): error TS2322: Type '{ seleniumAddress: string; baseUrl: string; capabilities: { browserName: string; chromeOptions: {...' is not assignable to type 'Config'. Types of property 'cucumberOpts' are incompatible. Type '{ require: string[]; format: string[]; }' is not assignable to type '{ [key: string]: any; require?: string; tags?: string; format?: string; coffee?: any; noSnippets?...'. Types of property 'require' are incompatible. Type 'string[]' is not assignable to type 'string'.
The clue is in config.ts file. In lib/config.ts:563 and lib/config.ts:572 you've got
require?: string;
Could you please change them into:
require?: Array<string>;
Regards,
Kacper
The text was updated successfully, but these errors were encountered: