Skip to main content

Function: createTestClient()

createTestClient<Docs>(options?): object

Defined in: packages/client/src/testing.ts:31

Builds a core-tier client backed by a MemoryTransport instead of the network. The returned client is a real FrappeClient — assignable anywhere a production client is, and produced by the exact same createFrappeClient wiring.

Type Parameters​

Docs​

Docs extends object = object

Parameters​

options?​

Partial<FrappeClientOptions> = {}

Returns​

object

client​

client: FrappeClient<Docs>

transport​

transport: MemoryTransport