Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

CucumberOpts.compiler doesn't handle compiler options correctly #173

Open
kamolins3 opened this issue Jun 7, 2019 · 0 comments
Open

CucumberOpts.compiler doesn't handle compiler options correctly #173

kamolins3 opened this issue Jun 7, 2019 · 0 comments

Comments

@kamolins3
Copy link

In readme there is an example of passing compiler options to such as:
[ ['js:babel-register', { ignore: [] }] ]

Error thrown is compiler.split is not a function

Looking into it a bit in wdio-cucumber-framework/build/adapter.js:222

This function here:

 value: function registerCompilers() {
            this.cucumberOpts.compiler.forEach(function (compiler) {
                var parts = compiler.split(':');
                require(parts[1]);
            });
        }

Compiler array passed to it looks like this:

[ 'js:babel-register', { ignore: [] } ]

wdio-cucumber-framework 2.2.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant