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