toBeEmpty

Bun

Symbol

MatchersBuiltin.toBeEmpty

toBeEmpty(): void

Asserts that a value is empty.

expect("").toBeEmpty();
expect([]).toBeEmpty();
expect({}).toBeEmpty();
expect(new Set()).toBeEmpty();