mock function from bun:test.
The mock function can accept arguments.
The result of
mock() is a new function decorated with extra properties.
Use these properties to write
expect assertions about how the mock was used: how many times it was called, with which arguments, and what it returned.
See Mocks.