Things get complicated when we want to pass several arguments to mocha. Right now we can pass a pattern to test script like this:
npm run test pattern
This sets -g option of mocha behind the scenes. We cannot give any other option right now.
It would be better to be able give mocha options like this:
npm run test -g pattern -b