MCPcopy
hub / github.com/anomalyco/opencode / sdk-error-shape.test.ts

File sdk-error-shape.test.ts

packages/opencode/test/server/sdk-error-shape.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Regression tests for the SDK error shape — the v2 SDK's `throwOnError: true`
3 * path used to throw raw values (empty strings or POJOs from JSON-decoded
4 * error bodies). The TUI catches those and `e.message`/`e.stack` are

Callers

nothing calls this directly

Calls 8

disposeAllInstancesFunction · 0.90
resetDatabaseFunction · 0.90
tmpdirFunction · 0.90
testFunction · 0.85
clientFunction · 0.70
getMethod · 0.65
listMethod · 0.65
describeFunction · 0.50

Tested by

no test coverage detected