Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ promise.test.ts
File
promise.test.ts
packages/client/test/promise.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ expect, test } from
"bun:test"
2
import
{ isSessionNotFoundError, isUnauthorizedError, OpenCode } from
"../src"
3
4
test(
"exposes every standard HTTP API group"
, () => {
Callers
nothing calls this directly
Calls
15
isUnauthorizedError
Function · 0.90
isSessionNotFoundError
Function · 0.90
test
Function · 0.85
push
Method · 0.80
active
Method · 0.80
switchAgent
Method · 0.80
switchModel
Method · 0.80
compact
Method · 0.80
context
Method · 0.80
at
Method · 0.80
interrupt
Method · 0.80
json
Method · 0.65
Tested by
no test coverage detected