MCPcopy Create free account
hub / github.com/tiann/hapi / callHelper

Function callHelper

hub/src/sync/syncEngineAutoMigrate.test.ts:81–85  ·  view source on GitHub ↗
(session: Session)

Source from the content-addressed store, hash-verified

79 })
80
81 async function callHelper(session: Session): Promise<Session> {
82 return await (engine as unknown as {
83 maybeAutoMigrateLegacyCursorSession(s: Session, ns: string): Promise<Session>
84 }).maybeAutoMigrateLegacyCursorSession(session, 'default')
85 }
86
87 function stubMigrator(outcome: { ok: boolean; reason?: string; message?: string }): { calls: Array<{ sessionId: string }> } {
88 const calls: Array<{ sessionId: string }> = []

Callers 1

Tested by

no test coverage detected