MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / mockPromptAiSdk

Function mockPromptAiSdk

sdk/src/impl/__tests__/prompt-result.test.ts:88–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 describe('usage patterns', () => {
87 it('should support early return on abort', async () => {
88 async function mockPromptAiSdk(): Promise<PromptResult<string>> {
89 // Simulate abort
90 return promptAborted('Request cancelled')
91 }
92
93 const result = await mockPromptAiSdk()
94 if (result.aborted) {

Callers 2

callerThatThrowsFunction · 0.85

Calls 1

promptAbortedFunction · 0.90

Tested by

no test coverage detected