MCPcopy Index your code
hub / github.com/simstudioai/sim / makeFactory

Function makeFactory

apps/sim/providers/client-cache.test.ts:13–15  ·  view source on GitHub ↗

* Builds a fresh fake "client" object on every call so identity comparisons * (`toBe`) tell us whether the cache returned the memoized instance or a new one * from the factory. We never construct a real SDK client — these tests exercise * the cache, not any provider SDK.

()

Source from the content-addressed store, hash-verified

11 * the cache, not any provider SDK.
12 */
13function makeFactory() {
14 return vi.fn(() => ({}) as object)
15}
16
17/**
18 * Generates a unique suffix per test so distinct tests never collide on cache

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected