LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mocha

JavaScript test framework

TLDR

Run tests
$ mocha
copy
Run specific file
$ mocha [test/spec.js]
copy
Watch mode
$ mocha --watch
copy
Run with grep
$ mocha --grep "[pattern]"
copy
Reporter style
$ mocha --reporter [spec]
copy
Recursive tests
$ mocha --recursive
copy

SYNOPSIS

mocha [options] [files]

DESCRIPTION

mocha is a JavaScript test framework. It runs in Node.js and browsers.The tool provides BDD/TDD testing styles. Supports async tests and many reporters.

PARAMETERS

FILES

Test files to run.
--watch
Watch for changes.
--grep PATTERN
Filter tests.
--reporter NAME
Output format.
--recursive
Include subdirectories.
--timeout MS
Test timeout.
--help
Display help information.

INSTALL

nix profile install nixpkgs#mocha
copy

CAVEATS

Node.js required. Requires assertion library. Configuration via .mocharc.

HISTORY

Mocha was created by TJ Holowaychuk as a feature-rich JavaScript test framework.

SEE ALSO

jest(1), npm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid