MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / getModuleExport

Function getModuleExport

tests/setup.ts:213–219  ·  view source on GitHub ↗
(moduleExports: object, exportName: string)

Source from the content-addressed store, hash-verified

211}
212
213function getModuleExport<T>(moduleExports: object, exportName: string): T | undefined {
214 try {
215 return (moduleExports as Record<string, T>)[exportName];
216 } catch {
217 return undefined;
218 }
219}
220
221vi.doMock("@/lib/api-client/v1/actions/providers", async () => {
222 const [providers, modelPrices] = await Promise.all([

Callers 1

setup.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected