()
| 118 | * @returns CommandExecutor that throws on invocation |
| 119 | */ |
| 120 | export 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 |
no outgoing calls
no test coverage detected