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