Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tiann/hapi
/ opencodeModels.test.ts
File
opencodeModels.test.ts
cli/src/modules/common/opencodeModels.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ afterEach, beforeEach, describe, expect, it, vi } from
'vitest'
2
3
const
sendRequestMock = vi.fn()
4
const
closeMock = vi.fn().mockResolvedValue(undefined)
Callers
nothing calls this directly
Calls
3
_resetOpencodeModelsCacheForTests
Function · 0.90
listOpencodeModelsForCwd
Function · 0.90
resolveSecond
Function · 0.85
Tested by
no test coverage detected