Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tiann/hapi
/ runOpencode.test.ts
File
runOpencode.test.ts
cli/src/opencode/runOpencode.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ beforeEach, describe, expect, it, vi } from
'vitest'
;
2
3
const
mockOpencodeSession = vi.hoisted(() => ({
4
setModel: vi.fn(),
Callers
nothing calls this directly
Calls
6
runOpencode
Function · 0.90
getConfigHandler
Function · 0.85
handler
Function · 0.85
releaseListSlashCommands
Function · 0.85
push
Method · 0.45
listSlashCommands
Method · 0.45
Tested by
no test coverage detected