Webdriverio: WebDriverIO v5 cucumberOpts is not included in WebdriverIO.Config typescript

Created on 18 Jul 2019  ·  3Comments  ·  Source: webdriverio/webdriverio

Is your feature request related to a problem? Please describe.
WebDriverIO v5 cucumberOpts is not included in typescript . I have added wdio.d.ts file but it is nice to have adding in webdriverio package.

WebDriverIO version : 5.11.5

    interface Options {
        cucumberOpts?: {
            require: string[],
            backtrace: boolean,
            requireModule: (string | object)[],
            dryRun: boolean,
            failFast: boolean,
            format: string[],
            colors: boolean,
            snippets: boolean,
            source: boolean,
            profile: string[],
            strict: boolean,
            tagExpression: string,
            timeout: number,
            ignoreUndefinedDefinitions: boolean
        }
    }
TypeScript good first pick help wanted

Most helpful comment

@espekkaya @mgrybyk
tags: string[] shoud be tagExpression: string
https://github.com/webdriverio/webdriverio/blob/master/packages/wdio-cucumber-framework/src/constants.js

It also occurs with config generated by wdio cli

All 3 comments

@espekkaya may you please rise a PR for this?

I'd also suggest making properties optional and add function type to requireModule array

@espekkaya @mgrybyk
tags: string[] shoud be tagExpression: string
https://github.com/webdriverio/webdriverio/blob/master/packages/wdio-cucumber-framework/src/constants.js

It also occurs with config generated by wdio cli

@jayrepo , you are right. I have just edited right now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrahman2327 picture mrahman2327  ·  3Comments

pfluegs picture pfluegs  ·  4Comments

KOPTE3 picture KOPTE3  ·  3Comments

davidsoderberg picture davidsoderberg  ·  4Comments

LaiaPR picture LaiaPR  ·  4Comments