# vitest/prefer-to-be-falsy 📝 Enforce using toBeFalsy(). 🚫 This rule is _disabled_ in the 🌐 `all` config. 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). ## Rule Details This rule aims to enforce the use of `toBeFalsy()` over `toBe(false)` Examples of **incorrect** code for this rule: ```js expect(foo).toBe(false) expectTypeOf(foo).toBe(false) ``` Examples of **correct** code for this rule: ```js expect(foo).toBeFalsy() expectTypeOf(foo).toBeFalsy() ```