Skip to content

test: add complex Date edge case tests for DeepStrictMerge#44

Merged
kakasoo merged 1 commit intomainfrom
kakasoo/fix-deep-flat
Feb 20, 2026
Merged

test: add complex Date edge case tests for DeepStrictMerge#44
kakasoo merged 1 commit intomainfrom
kakasoo/fix-deep-flat

Conversation

@kakasoo
Copy link
Owner

@kakasoo kakasoo commented Feb 20, 2026

Summary

  • Closes DeepStrictMerge does not handle Date types, causing Date decomposition #38
  • The Date handling fix was already present in DeepStrictMerge.Infer (lines 18-22), so no source change was needed
  • Added 5 new complex edge case tests to verify Date behavior in more challenging scenarios:
    • Target Date vs Source non-Date object at the same key
    • Target non-Date object vs Source Date at the same key
    • Date properties inside array element merging
    • Date mixed with deeply nested objects (3+ levels)
    • Multiple Date properties at various nesting levels

Test plan

  • npm run build:test && npm run test — all 390 tests pass (5 new)
  • npm run prettier — formatting applied

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kakasoo kakasoo merged commit cd5dc9b into main Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeepStrictMerge does not handle Date types, causing Date decomposition

1 participant