mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
## Summary - Fixed `assert.partialDeepStrictEqual` to correctly handle Map subset checking - Previously, Map comparison used `Bun.deepEquals` which required exact equality - Now properly checks that all entries in the expected Map exist in the actual Map with matching values Fixes #24338 ## Test plan - Added comprehensive test suite in `test/regression/issue/24338.test.ts` covering: - Basic subset checking (key2 in Map with key1 and key2) - Exact match cases - Empty expected Map - Multiple matching entries - Nested objects as values - Failure cases when expected has more keys - Failure cases when key is missing in actual - Failure cases when values differ - Nested Map values - Non-string keys 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
3.0 KiB
3.0 KiB