# vitest/no-duplicate-hooks 📝 Disallow duplicate hooks and teardown hooks. ⚠️ This rule _warns_ in the 🌐 `all` config. ## Rule Details This rule aims to prevent duplicate hooks and teardown hooks. Examples of **incorrect** code for this rule: ```ts test('foo', () => { beforeEach(() => {}) beforeEach(() => {}) // duplicate beforeEach }) ``` Examples of **correct** code for this rule: ```ts test('foo', () => { beforeEach(() => {}) }) ```