Matt Zukowski Matt Zukowski - 1 year ago 106
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download