MCPcopy
hub / github.com/coder/mux / preloadTestModules

Function preloadTestModules

tests/ipc/setup.ts:163–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 * Call this in beforeAll hooks to prevent Jest sandbox race conditions.
162 */
163export async function preloadTestModules(): Promise<void> {
164 const [{ loadTokenizerModules }, { preloadAISDKProviders }] = await Promise.all([
165 import("../../src/node/utils/main/tokenizer"),
166 import("../../src/node/services/providerModelFactory"),
167 ]);
168 await Promise.all([loadTokenizerModules(), preloadAISDKProviders()]);
169}
170
171/**
172 * Setup a complete workspace with provider

Calls 2

loadTokenizerModulesFunction · 0.85
preloadAISDKProvidersFunction · 0.85

Tested by

no test coverage detected