/** * Unit tests for src/cli/init.ts * * Focus: `findParentConfig(startDir)` — walks UP from startDir looking for * a .codeprism/config.json in a parent directory (NOT the startDir itself). * * NOTE: `findParentConfig` is not exported from init.ts. Because `runInit` * requires interactive TTY prompts (@inquirer/prompts), it cannot be called * directly in tests. The function is tested here via a thin extracted helper * that re-implements the same walk logic using only `existsSync`. * * Recommendation: export `findParentConfig` from init.ts (or move it to * `src/config/find-parent-config.ts`) so it can be imported and tested * without re-implementing the logic in tests. * * Until that refactor happens, this file validates the expected contract with * a parallel pure-TS implementation that mirrors the source exactly, and * the filesystem integration tests below act as regression guards. */ export {}; //# sourceMappingURL=init.test.d.ts.map