# vitest/prefer-each 📝 Enforce using `each` rather than manual loops. ⚠️ This rule _warns_ in the 🌐 `all` config. ```js // bad for (const item of items) { describe(item, () => { expect(item).toBe('foo') }) } // good describe.each(items)('item', (item) => { expect(item).toBe('foo') }) ```