ECC/tests/lib
Affaan Mustafa f000d9b02d test: cover getSessionStats file-path read, hasContent field, and wrapped hooks format
Round 78 — shifted from catch blocks to untested conditional branches:
- getSessionStats: exercise looksLikePath → getSessionContent path (real .tmp file)
- getAllSessions: verify hasContent true/false for non-empty vs empty files
- validate-hooks: test wrapped { hooks: { PreToolUse: [...] } } production format
2026-02-13 10:21:06 -08:00
..
package-manager.test.js test: cover setProjectPM save failure, deleteAlias save failure, hooks async/timeout validation 2026-02-13 08:12:27 -08:00
session-aliases.test.js test: cover cleanupAliases save failure, setAlias save failure, and validate-commands statSync catch 2026-02-13 09:42:25 -08:00
session-manager.test.js test: cover getSessionStats file-path read, hasContent field, and wrapped hooks format 2026-02-13 10:21:06 -08:00
utils.test.js test: cover findFiles unreadable subdir, session-start default PM, setPreferredPM save failure 2026-02-13 08:01:15 -08:00