# hasRecording

Canonical: <https://test-proxy-recorder.dev/docs/reference/api/functions/hasrecording/>
Docs index: <https://test-proxy-recorder.dev/docs/> · All docs as one file: <https://test-proxy-recorder.dev/llms-full.txt>

---

> **hasRecording**(`testInfo`, `options?`): `Promise`\<`boolean`\>

Defined in: [playwright/index.ts:280](https://github.com/asmyshlyaev177/test-proxy-recorder/blob/68d642a4428e618b3b655238965abf8221b45525/packages/test-proxy-recorder/src/playwright/index.ts#L280)

Whether replay has a recording for this test, under any name the proxy or an
earlier version saved it.

## Parameters

### testInfo

[`PlaywrightTestInfo`](/docs/reference/api/type-aliases/playwrighttestinfo/)

### options?

[`HasRecordingOptions`](/docs/reference/api/interfaces/hasrecordingoptions/)

## Returns

`Promise`\<`boolean`\>
