☕️ Classic, reliable, trusted test framework for Node.js and the browser
update slow description (#3466)
Fin Chenb636faf53755
diff --git a/docs/images/test-duration-range.png b/docs/images/test-duration-range.pngnew file mode 100644index 00000000..26dcfc04Binary files /dev/null and b/docs/images/test-duration-range.png differdiff --git a/docs/index.md b/docs/index.mdindex b50cd419..2e256c89 100644--- a/docs/index.md+++ b/docs/index.md@@ -707,10 +707,18 @@ $ mocha<h2 id="test-duration">Test duration</h2>-Many reporters will display test duration, as well as flagging tests that are slow, as shown here with the "spec" reporter:+Many reporters will display test duration and flag tests that are slow (default: 75ms), as shown here with the "spec" reporter:{:class="screenshot"}+There are three levels of test duration (depicted in the following image):++1. FAST: Tests that run within half of the "slow" threshold will show the duration in green (if at all).+2. NORMAL: Tests that run exceeding half of the threshold (but still within it) will show the duration in yellow.+3. SLOW: Tests that run exceeding the threshold will show the duration in red.++{:class="screenshot"}+To tweak what's considered "slow", you can use the `slow()` method:```js