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

Function createNoopExecutor

src/test-utils/mock-executors.ts:120–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 * @returns CommandExecutor that throws on invocation
119 */
120export function createNoopExecutor(): CommandExecutor {
121 return async (command) => {
122 throw new Error(
123 `🚨 NOOP EXECUTOR CALLED! 🚨\n` +
124 `Command: ${command.join(' ')}\n` +
125 `This executor should never be called in this test context.\n` +
126 `If you see this error, it means the test is exercising a code path that wasn't expected.\n` +
127 `Either fix the test to avoid this code path, or use createMockExecutor() instead.`,
128 );
129 };
130}
131
132/**
133 * Create a command-matching mock executor for testing multi-command scenarios

Calls

no outgoing calls

Tested by

no test coverage detected