Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 401 Bytes

File metadata and controls

16 lines (10 loc) · 401 Bytes

vitest/prefer-to-be-object

📝 Enforce using toBeObject().

⚠️ 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()