mocha

mocha

TLDR

Run tests with default configuration or as configured in mocha.opts

$ mocha
copy

Run tests contained at a specific location

$ mocha [directory/with/tests]
copy

Run tests that match a specific grep pattern

$ mocha --grep [^regex$]
copy

Run tests on changes to JavaScript files in the current directory and once initially

$ mocha --watch
copy

Run tests with a specific reporter

$ mocha --reporter [reporter]
copy

Copied to clipboard
free 100$ digital ocean credit