From 27893a11753b40f75c56e4a83ef4888563e58ff8 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Sun, 10 Feb 2019 11:12:33 -0800 Subject: [PATCH] add createInvalidArgumentError(); see #3676 (#3677) - updated error code table in docs - all other changes in docs are from prettier - updated `--compilers` test - rename "not supported" error to "unsupported" error - rename "undefined error" error to "invalid exception" error - remove "invalid argument" factory; use "unsupported" factory - doc fixes - move `utils.getError` to `Runnable.getError`, since it's only used there - remove `utils.undefinedError`; use `createInvalidExceptionError` instead. - add more `Runner` coverage for Coveralls - add my `unexpected-eventemitter` plugin, which helps test `EventEmitter` behavior - fix coverage problems --- docs/index.md | 421 +++++++++--------- karma.conf.js | 1 + lib/cli/run.js | 6 +- lib/errors.js | 30 +- lib/reporters/xunit.js | 4 +- lib/runnable.js | 25 +- lib/runner.js | 21 +- lib/utils.js | 24 - package-lock.json | 6 + package-scripts.js | 2 +- package.json | 1 + test/browser-specific/setup.js | 3 +- test/integration/helpers.js | 11 +- test/integration/options.spec.js | 16 - test/integration/options/interfaces.spec.js | 37 ++ .../options/reporter-option.spec.js | 25 ++ test/integration/options/reporters.spec.js | 40 ++ test/integration/show-plugins.spec.js | 76 ---- test/reporters/helpers.js | 4 +- test/setup.js | 5 +- test/unit/runnable.spec.js | 15 +- test/unit/runner.spec.js | 319 ++++++++++++- 22 files changed, 723 insertions(+), 369 deletions(-) delete mode 100644 test/integration/options.spec.js create mode 100644 test/integration/options/interfaces.spec.js create mode 100644 test/integration/options/reporter-option.spec.js create mode 100644 test/integration/options/reporters.spec.js delete mode 100644 test/integration/show-plugins.spec.js diff --git a/docs/index.md b/docs/index.md index 7bfe5895f1..f3d775f698 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,7 +3,8 @@ layout: default title: 'Mocha - the fun, simple, flexible JavaScript test framework' description: 'Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun.' --- -Mocha is a feature-rich JavaScript test framework running on [Node.js](https://nodejs.org) and in the browser, making asynchronous testing *simple* and *fun*. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on [GitHub](https://github.com/mochajs/mocha). + +Mocha is a feature-rich JavaScript test framework running on [Node.js](https://nodejs.org) and in the browser, making asynchronous testing _simple_ and _fun_. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on [GitHub](https://github.com/mochajs/mocha).