> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# assertTranscript()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function assertTranscript(
   transcript, 
   createBot, 
   options?
): Promise<ReplayResult>;
```

Defined in: [testing/transcripts/replay.ts:214](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/transcripts/replay.ts#L214)

[replayTranscript](https://botmesh.afaya.com.co/api/core/testing/functions/replayTranscript.md), throwing a [TranscriptMismatchError](https://botmesh.afaya.com.co/api/core/testing/classes/TranscriptMismatchError.md) on any diff.

## Parameters

| Parameter | Type |
| - | - |
| `transcript` | [`Transcript`](https://botmesh.afaya.com.co/api/core/interfaces/Transcript) |
| `createBot` | [`ReplayBotFactory`](https://botmesh.afaya.com.co/api/core/testing/type-aliases/ReplayBotFactory) |
| `options?` | [`ReplayOptions`](https://botmesh.afaya.com.co/api/core/testing/interfaces/ReplayOptions) |

## Returns

`Promise`\<[`ReplayResult`](https://botmesh.afaya.com.co/api/core/testing/interfaces/ReplayResult)>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.