Skip to main content
Use the spyOn utility to track method calls with Bun’s test runner.

Once you’ve created the spy, use it in expect assertions about method calls.

See Mocks.