rocha icon indicating copy to clipboard operation
rocha copied to clipboard

Rocha doesn't work with compilers

Open bhough opened this issue 10 years ago • 1 comments

Attempting to do the following:

rocha ./test/**/**/*.jsx --recursive --compilers js:babel-core/register

This returns a syntax error since it doesn't recognize the ES6 syntax. Have also tried this with a coffeescript compiler with the same result. Would love to use this but need compiler support.

bhough avatar Jan 07 '16 20:01 bhough

Agreed, Mocha does this using wrapper functions at the startup, see _mocha and mocha files in https://github.com/mochajs/mocha/tree/master/bin

Not sure when I will get to this,

bahmutov avatar Jan 07 '16 20:01 bahmutov