Recently, I had the same problem and the solution was implemented using Mocha compilers.
create a file, name it "css-null-compiler.js" and it has:
function noop() { return null; } require.extensions['.styl'] = noop;
when you run mocha from the command line, pass this file as a compiler
mocha /your/test.spec.js --compilers css:css-null-compiler.js
Qusai Jouda Sep 29 '15 at 15:57 2015-09-29 15:57
source share