knpwrs/gulp-spawn-mocha

Setting `gc` option calls `mocha --gc` instead of `mocha -gc`

drifkin opened this issue · 4 comments

It looks like this is the only argument that mocha accepts that is more than one character, but should only have a single dash. The current workaround is to set "expose-gc" to true, which ends up calling mocha --expose-gc.

Hmm. That's odd that they would break unix convention for one argument. Do you absolutely need to use gc? I'm not a fan of special casing this argument in the code, I'd rather just put a note in the README saying to use exposeGc.

Nope, I'm perfectly fine with using expose-gc, it just took me a little while to figure out why gc wasn't working. A note in the README is plenty.

Thanks!

Np. Published to npm as version 2.0.2 which also removes the dependency on inflection.