Member Junction
    Preparing search index...
    • Creates a mock object that behaves like a BaseEntity with getter/setter properties. Since BaseEntity uses getter/setters, the spread operator doesn't work on real entities. This creates a Proxy-based mock that supports Get(), Set(), GetAll(), and property access.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • data: T

        Initial field values for the mock entity

      • options: MockEntityOptions = {}

        Configuration options for the mock's state

      Returns T & MockEntityMethods

      A proxy object that behaves like a BaseEntity