Files
oh-my-opencode/src/testing/module-mock-lifecycle-nested/caller.ts
T
2026-05-30 13:44:54 +09:00

8 lines
234 B
TypeScript

type MockModuleApi = {
module: (specifier: string, factory: () => Record<string, unknown>) => unknown
}
export function mockNestedFixture(mockApi: MockModuleApi): void {
mockApi.module("./fixture", () => ({ named: "mocked" }))
}