# vitest/no-conditional-tests 📝 Disallow conditional tests. ⚠️ This rule _warns_ in the 🌐 `all` config. ## Rule Details Examples of **incorrect** code for this rule: ```js describe('my tests', () => { if (true) { it('is awesome', () => { doTheThing() }) } }) ``` Examples of **correct** code for this rule: ```js describe('my tests', () => { it('is awesome', () => { doTheThing() }) }) ```