From 186d3f2e25f25c0a30e51e84f11cde10fa79d120 Mon Sep 17 00:00:00 2001 From: Kyle Kamperschroer Date: Tue, 5 Jan 2016 10:09:12 -0800 Subject: [PATCH] Add mocha.md --- pages/common/mocha.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/mocha.md diff --git a/pages/common/mocha.md b/pages/common/mocha.md new file mode 100644 index 000000000..53fdc2109 --- /dev/null +++ b/pages/common/mocha.md @@ -0,0 +1,23 @@ +# mocha + +> Execute Mocha JavaScript test runner + +- Run tests with default configuration or as configured in `mocha.opts` + +`mocha` + +- Run tests contained at a specific location + +`mocha {{folder/with/tests}}` + +- Run tests that match a specific grep pattern + +`mocha --grep {{^regex$}}` + +- Run tests on changes to JavaScript files in the current directory and once initially + +`mocha --watch` + +- Run tests with a specific reporter + +`mocha --reporter {{reporter}}`