MtoBeEmpty
Bun

method

test.Matchers.toBeEmpty

toBeEmpty(): void;

Asserts that a value is empty.

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