Function registerClass

  • Parameters

    • name: string

      class name as it appears in recorded snapshots

    • ctor: RegisteredCtor

      the class constructor to restore on replay

    Returns void

    Description

    Registers a class constructor under the given name. The name must match constructor.name (or the recorded error's name for errors) as it appears in the snapshot. Intended for test setup; re-registering the same name replaces the previous entry.