mocha-parallel-tests icon indicating copy to clipboard operation
mocha-parallel-tests copied to clipboard

Incompatible with `mocha-cakes-2`

Open nick-kompas-cko opened this issue 6 years ago • 2 comments

When initializing a new Mocha with mocha-cakes-2, the tests are unable to run.

var mocha = new Mocha({
    grep: scopeGrep,
    timeout: 60000,
    ui: 'mocha-cakes-2',
    reporter: mochaReporter,
    reporterOptions: {
        enableCode: false,
        autoOpen: false
    }
});

Error: ReferenceError: feature is not defined

I expected this to work is mocha-parallel-tests appears to be a wrapper of Mocha. Any chance of adding support for this?

nick-kompas-cko avatar Oct 17 '19 13:10 nick-kompas-cko

I just realised it was already requested that you add support for the ui option by someone else.

nick-kompas-cko avatar Oct 17 '19 16:10 nick-kompas-cko

This looks more like a global issue where a global variable is shared between the tests. Is there such thing in mocha-cake-2?

1999 avatar Oct 18 '19 04:10 1999