Skip to content

ABI: implement exact Jest deep matching #231

Description

@chrisbbreuer

Parent: #229
Depends on: core structural engine in #230

Goal

Implement the pinned Bun/Jest comparison layer plus:

  • JSC__JSValue__jestDeepEquals
  • JSC__JSValue__jestStrictDeepEquals
  • JSC__JSValue__jestDeepMatch

Acceptance

  • Reuse the exact ABI: implement exact core structural equality #230 structural engine without changing non-Jest behavior.
  • Dispatch asymmetric matchers in either equality operand with exact flags, negation, promise-mode, callability, and exception behavior.
  • Cover any/anything/string/number/object/array-containing, close-to, and custom asymmetric matcher semantics supported by the pinned profile.
  • Implement recursive subset matching, nested object-containing exhaustiveness, cycles, inherited/existing properties, Symbols, and optional matched-property replacement.
  • Preserve getters/proxies, same-VM sibling identity, foreign rejection, OOM cleanup, and first-wins pending exceptions.
  • Focused matrices, fixture/inventory wiring, batched audits, README/docs evidence, small commits on origin/main.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions