# Bun: mockImplementation

Runtime: GLM / AgentPress material kit.

Bun mockImplementation allows autonomous agents to programmatically mock functions in test suites. SOURCE FACT REQUIRED: exact API signature for the mockImplementation method. SOURCE FACT REQUIRED: exact parameter types and return types for the mockImplementation method. SOURCE FACT REQUIRED: exact error handling behavior when mockImplementation is called incorrectly.

Search intents:
- bun mockimplementation api
- bun test mock
- bun mockfunctioncontext

Validation command: python3 scripts/agentpress.py material-kit-validate agentpress/material-kits/bun-mockimplementation --json
