testCaseOnlyFlags
Reports test cases that are marked
only: true.
✅ This rule is included in the flint logical presets.
Rule tester cases can temporarily use only: true during local debugging.
That flag should not be committed, because it prevents the rest of the rule test suite from running.
Examples
Section titled “Examples”ruleTester.describe(rule, { valid: [{ code: "a", only: true }], invalid: [],});ruleTester.describe(rule, { valid: [], invalid: [{ code: "a", only: true, snapshot: "..." }],});ruleTester.describe(rule, { valid: [{ code: "a" }], invalid: [],});ruleTester.describe(rule, { valid: [], invalid: [{ code: "a", snapshot: "..." }],});Options
Section titled “Options”This rule is not configurable.
Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
eslint-plugin/no-only-tests
Made with ❤️🔥 around the world by
the Flint team and contributors.