Skip to content

Add unit tests for merge-utils module #270

Description

@nikolasdehor

Problem

The merge-utils module (.aios-core/core/config/merge-utils.js) has no unit test coverage. This module implements the deep merge strategy from ADR-PRO-002 with +append arrays, null deletion, and layered config merging.

Solution

Add 24 unit tests covering all merge strategies and edge cases.

Test Details

Area Tests Key Scenarios
isPlainObject 6 Objects, null, arrays, primitives, class instances
deepMerge 12 Scalars, nested, arrays, +append, null delete, immutability
mergeAll 6 Multiple layers, zero/single, null/non-object skip
Total 24

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions