Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 398 Bytes

prefer-to-be-object.md

File metadata and controls

13 lines (9 loc) · 398 Bytes

Enforce using toBeObject() (vitest/prefer-to-be-object)

⚠️ This rule warns in the 🌐 all config.

🔧 This rule is automatically fixable by the --fix CLI option.

expectTypeOf({}).not.toBeInstanceOf(Object);

// should be
expectTypeOf({}).not.toBeObject();