Matt Zukowski Matt Zukowski - 2 months ago 18
Node.js Question

Making mocha "use strict" when running in node

Is there a way to make Mocha run tests in strict mode when running on node?

Normally you can enable this in node by running

node --use_strict
. Is there a way to do the same thing for
mocha
?

Answer

I would just start test scripts with 'use strict';

Comments