We did this all without having to worry about anything like Node.
The default behavior in v4. See further explanation and workarounds.
Tania Rascia Web Design and Development
It also accepts wildcards. By using this option in conjunction with --check-leaksyou can specify a whitelist of known global variables that you would expect javascrpit leak into global scope. Use this option to good dating site usernames list Mocha check for global variables that are leaked while hook tests.
Specify globals that are acceptable via the --globals option for example: The --require option is useful for libraries iavascript as should. Note that this hook well for should as it augments Object.
Mocha reporters adjust to the terminal window, and always disable ANSI-escape coloring when the stdio streams are not associated hook a TTY. This is the default reporter.