From 0460209fd34354109761d4de7c0bcec90b620ac8 Mon Sep 17 00:00:00 2001 From: juergba Date: Thu, 12 Aug 2021 16:47:34 +0200 Subject: [PATCH] docs --- docs/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/index.md b/docs/index.md index 86497d0ab1..017adad8be 100644 --- a/docs/index.md +++ b/docs/index.md @@ -899,6 +899,10 @@ To ensure your tests aren't leaving messes around, here are some ideas to get st - Try something like [wtfnode][npm-wtfnode] - Use [`.only`](#exclusive-tests) until you find the test that causes Mocha to hang +### `--fail-zero` + +> _New in v9.1.0._ Fail test run if no tests are encountered with `exit-code` 1. + ### `--forbid-only` Enforce a rule that tests may not be exclusive (use of e.g., `describe.only()` or `it.only()` is disallowed). @@ -2118,6 +2122,7 @@ mocha.setup({ bail: true, checkLeaks: true, dryRun: true, + failZero: true, forbidOnly: true, forbidPending: true, global: ['MyLib'],