Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Cucumber and Mocha - ES2015 transpiler #3

@srhwork

Description

@srhwork

Hi.

I'm developing a project where I use "cucumber" for functional testing and "mocha" for unit testing. So I want to use "preceptor" to manage both test frameworks.

The problem is that all my tests use ES2015 syntax, so I use the "--compiler" and "--compilers" option in "cucumber" and "mocha" to run.

./node_modules/.bin/cucumber.js --compiler js:babel/register test/features

or

./node_modules/.bin/babel-node ./node_modules/.bin/cucumber.js test/features

and

./node_modules/.bin/mocha --compilers js:babel/register --recursive ./test/unit/

Is possible to add the compile option to tasks in "preceptor"?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions