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

Function requireTestModule

src/browser/testUtils.ts:13–15  ·  view source on GitHub ↗
(modulePath: string)

Source from the content-addressed store, hash-verified

11 * the first load, but the module's normal specifier resolution must stay intact.
12 */
13export function requireTestModule<T>(modulePath: string): T {
14 return requireForTest(modulePath) as T;
15}
16
17/**
18 * Helper type for recursive partial mocks.

Calls

no outgoing calls