MCPcopy Create free account
hub / github.com/wevm/viem / createTestClient

Function createTestClient

src/clients/createTestClient.ts:115–127  ·  view source on GitHub ↗
(parameters: TestClientConfig)

Source from the content-addressed store, hash-verified

113>
114
115export function createTestClient(parameters: TestClientConfig): TestClient {
116 const { key = 'test', name = 'Test Client', mode } = parameters
117 const client = createClient({
118 ...parameters,
119 key,
120 name,
121 type: 'testClient',
122 })
123 return client.extend((config) => ({
124 mode,
125 ...testActions({ mode })(config),
126 }))
127}

Calls 2

testActionsFunction · 0.85
createClientFunction · 0.70

Tested by

no test coverage detected