jest-unexpected
API
expect
toBe
toBeDefined
toBeFalsy
toBeInstanceOf
toBeTruthy
toBeUndefined
toContain
toContainEqual
toHaveBeenCalled
toHaveBeenCalledTimes
toHaveBeenCalledWith
toHaveBeenLastCalledWith
toHaveBeenNthCalledWith
toHaveLastReturnedWith
toHaveNthReturnedWith
toHaveProperty
toHaveReturned
toHaveReturnedTimes
toHaveReturnedWith
toMatch
toMatchObject.
toStrictEqual
.toBeFalsy()
This assertion checks a subject is a falsy value.
let
subject
;
jestUnexpected
({}).
toBeFalsy
();
expected
{}
to be falsy