Forrest logo
back to context overview

mocha

List of commands for mocha:

  • mocha:tldr:3ea56 mocha: Run tests on changes to JavaScript files in the current directory and once initially.
    $ mocha --watch
    try on your machine
    explain this command
  • mocha:tldr:5ab49 mocha: Run tests with a specific reporter.
    $ mocha --reporter ${reporter}
    try on your machine
    explain this command
  • mocha:tldr:99a64 mocha: Run tests contained at a specific location.
    $ mocha ${directory-with-tests}
    try on your machine
    explain this command
  • mocha:tldr:db218 mocha: Run tests with default configuration or as configured in `mocha.opts`.
    $ mocha
    try on your machine
    explain this command
  • mocha:tldr:fa7fa mocha: Run tests that match a specific grep pattern.
    $ mocha --grep ${regular_expression}
    try on your machine
    explain this command
back to context overview