Jest · Matcher
toBeFalsy
toBeFalsy() checks that a value behaves as false in a Boolean context. It accepts any JavaScript falsy value, not only false.
Last updated
Syntax
expect(value).toBeFalsy()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
toBeTruthytoBetoBeNulltoBeUndefinedexpect