mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
Fixes #21437 by adding the missing clearAllMocks method to the mock object. The clearAllMocks function was already implemented in jest.zig and available on the jest object, but was not exposed on the mock object despite being documented. This commit: 1. Adds clearAllMocks to the mock object type definition in test.d.ts 2. Exposes the existing clearAllMocks function on the mock object in jest.zig 3. Adds regression tests to verify the functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>