toBeFunction

Bun

Symbol

MatchersBuiltin.toBeFunction

toBeFunction(): void

Asserts that a value is a function.

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