# FakeReplicaOptions

Defined in: [core/src/testing/fake-replica.ts:95](https://github.com/B3Pay/ic-reactor/blob/f1956947ae037304fce1675a38695964c1aa9e32/packages/core/src/testing/fake-replica.ts#L95)

Options for [installFakeReplica](https://ic-reactor.b3pay.net/v3/libs/functions/installfakereplica/).

## Properties

### host?

> `optional` **host?**: `string`

Defined in: [core/src/testing/fake-replica.ts:105](https://github.com/B3Pay/ic-reactor/blob/f1956947ae037304fce1675a38695964c1aa9e32/packages/core/src/testing/fake-replica.ts#L105)

The origin the fake answers for. Point the agents under test at it, for
example with `agentOptions: { host: replica.host }`.

#### Default Value

Where a `ClientManager` built with no `host` sends its
calls: the page's origin when the test environment has a local one
(`http://localhost:3000` in Vitest's jsdom and happy-dom), and
`"http://127.0.0.1:4943"` otherwise.

***

### canisters?

> `optional` **canisters?**: `Record`\<`string`, [`FakeCanister`](https://ic-reactor.b3pay.net/v3/libs/interfaces/fakecanister/)\>

Defined in: [core/src/testing/fake-replica.ts:111](https://github.com/B3Pay/ic-reactor/blob/f1956947ae037304fce1675a38695964c1aa9e32/packages/core/src/testing/fake-replica.ts#L111)

The canisters the fake runs, by canister ID. A call to any other
canister is rejected, as a replica rejects a call to a canister that
does not exist.