()
| 425 | * Use this for tests where a spawner is required but should never be called. |
| 426 | */ |
| 427 | export function createNoopInteractiveSpawner(): InteractiveSpawner { |
| 428 | return () => { |
| 429 | throw new Error( |
| 430 | `🚨 NOOP INTERACTIVE SPAWNER CALLED! 🚨\n` + |
| 431 | `This spawner should never be called in this test context.\n` + |
| 432 | `If you see this error, it means the test is exercising a code path that wasn't expected.\n` + |
| 433 | `Either fix the test to avoid this code path, or use createMockInteractiveSpawner() instead.`, |
| 434 | ); |
| 435 | }; |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Create a mock environment detector for testing |
no outgoing calls
no test coverage detected