MtoBeFunction
Bun

method

test.Matchers.toBeFunction

toBeFunction(): void;

Asserts that a value is a function.

expect(() => {}).toBeFunction();