From 3f3f4c7c2a86a538d9fa73fe65676bbd07a6307a Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Fri, 1 Jan 2021 16:48:49 -0500 Subject: [PATCH] Use mocha --forbid-only --- designs/2020-rule-tester-only/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/designs/2020-rule-tester-only/README.md b/designs/2020-rule-tester-only/README.md index 23f960c6..815ffae3 100644 --- a/designs/2020-rule-tester-only/README.md +++ b/designs/2020-rule-tester-only/README.md @@ -54,6 +54,8 @@ To allow using `RuleTester` with a custom test framework other than Mocha, paral At the end of `RuleTester`'s `run()` method, for each valid and invalid item, if `only` is `true`, call `RuleTester.itOnly` instead of `RuleTester.it`. +Add [`--forbid-only`](https://mochajs.org/#-forbid-only) to the [`mocha` target in `Makefile.js`](https://github.com/eslint/eslint/blob/cc4871369645c3409dc56ded7a555af8a9f63d51/Makefile.js#L548) to prevent accidentally merging tests before removing `only`. + ## Documentation