Beignet API reference
    Preparing search index...

    Interface OutboxMessageExpectation

    Expected outbox message fields used by outbox assertion helpers.

    interface OutboxMessageExpectation {
        attempts?: number;
        deliveredAt?: Date | null;
        id?: string;
        kind?: OutboxMessageKind;
        lastError?: Partial<OutboxErrorInfo> | null;
        maxAttempts?: number;
        name?: string;
        payload?: unknown;
        status?: OutboxMessageStatus;
    }
    Index
    attempts?: number

    Expected claim attempt count.

    deliveredAt?: Date | null

    Expected delivery timestamp.

    id?: string

    Expected message ID.

    Expected message kind.

    lastError?: Partial<OutboxErrorInfo> | null

    Expected serialized delivery error. Object values are matched as partial objects. Pass null to assert no error has been recorded.

    maxAttempts?: number

    Expected maximum delivery attempts.

    name?: string

    Expected event or job name.

    payload?: unknown

    Expected JSON payload. Object values are matched as partial objects.

    Expected delivery status.