.toBeNull() is the same as .toBe(null) but the error messages are a bit nicer. So use .toBeNull() when you want to check that something is null.
.toBeNull()
.toBe(null)
function bloop() { return null; } test('bloop returns null', () => { expect(bloop()).toBeNull(); });