MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / createMockPipeline

Function createMockPipeline

src/utils/__tests__/build-utils.test.ts:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import type { XcodebuildPipeline } from '../xcodebuild-pipeline.ts';
12
13function createMockPipeline(): XcodebuildPipeline {
14 return {
15 onStdout: vi.fn(),
16 onStderr: vi.fn(),
17 emitEvent: vi.fn(),
18 finalize: vi.fn().mockReturnValue({ state: {}, mcpContent: [], events: [] }),
19 highestStageRank: vi.fn().mockReturnValue(0),
20 xcresultPath: null,
21 logPath: '/mock/log/path',
22 } as unknown as XcodebuildPipeline;
23}
24
25describe('build-utils Sentry Classification', () => {
26 afterEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected