# vitest/no-test-return-statement 📝 Disallow return statements in tests. ⚠️ This rule _warns_ in the 🌐 `all` config. ### Rule Details incorrect code for this rule: ```ts import { test } from 'vitest' test('foo', () => { return expect(1).toBe(1) }) ``` correct code for this rule: ```ts import { test } from 'vitest' test('foo', () => { expect(1).toBe(1) }) ```