not

Pnot
Bun

Symbol

Matchers.not

not: Matchers<unknown>

Negates the result of a subsequent assertion. If you know how to test something, .not lets you test its opposite.

expect(1).not.toBe(0);
expect(null).not.toBeNull();