Skip to main content
Defined in: testing/transcripts/replay.ts:61 Options for replayTranscript.

Properties

settleMs?

Defined in: testing/transcripts/replay.ts:63 Quiet period that ends a step once the expected replies arrived (default 30 ms).

stepTimeoutMs?

Defined in: testing/transcripts/replay.ts:65 Max time to wait for a step’s replies (default 2000 ms).

order?

Defined in: testing/transcripts/replay.ts:70 Reply ordering: 'per-chat' (default) compares each chat’s replies in order but tolerates interleaving between chats; 'strict' compares the global order.

timestamps?

Defined in: testing/transcripts/replay.ts:76 Timestamp tolerance. 'ignore' (default) skips timing. { toleranceMs } flags a reply whose delay after its triggering inbound turn differs from the recorded delay by more than toleranceMs.

compareIds?

Defined in: testing/transcripts/replay.ts:78 Compare message ids of outbound turns (default false: ids are volatile).

compareContent?

Defined in: testing/transcripts/replay.ts:83 Compare the full content when the expected turn has one (default true). false compares only kind + text.

ignoreContentFields?

Defined in: testing/transcripts/replay.ts:85 Dot paths inside content to ignore (e.g. 'media', 'target.id').

redact?

Defined in: testing/transcripts/replay.ts:92 Category-level redaction for goldens made with redactTranscript(..., { outboundPatterns: true }). On both sides, matches of the enabled patterns and placeholders/surrogates of those categories (<phone:2>, +10000000001) all become <category:*> before comparing, so bot-printed values that were redacted still match the real ones.

emails?

phones?

rules?


masks?

Defined in: testing/transcripts/replay.ts:94 Masks applied to every string on both sides before comparing.

normalizeWhitespace?

Defined in: testing/transcripts/replay.ts:96 Collapse runs of whitespace and trim (default true).

normalizeText?

Defined in: testing/transcripts/replay.ts:98 Custom text normalizer, applied after masks.

Parameters

Returns

string

now?

Defined in: testing/transcripts/replay.ts:100 Clock for actual t offsets (default Date.now).

Returns

number