diff --git a/src/mochawesome.js b/src/mochawesome.js index 18530be..61b3ad4 100755 --- a/src/mochawesome.js +++ b/src/mochawesome.js @@ -61,7 +61,11 @@ function consoleReporter(reporter) { try { return require(`mocha/lib/reporters/${reporter}`); } catch (e) { - log(`Unknown console reporter '${reporter}', defaulting to spec`); + try { + return require(reporter); + } catch (e) { + log(`Unknown console reporter '${reporter}', defaulting to spec`); + } } }