ponytail/tests
DietrichGebert 40e50d9e03
fix: don't crash uninstall on malformed settings.json (#481)
If settings.json contained invalid JSON, JSON.parse threw a SyntaxError, which
has no .code, so the catch rethrew it and crashed the script — after the mode
flag and config file were already removed, leaving cleanup half-done. Handle
SyntaxError explicitly: warn that the statusLine entry couldn't be removed and
leave the file untouched, since invalid JSON can't be safely edited. Adds a
regression test that a malformed settings.json exits 0, warns, and is left
byte-for-byte intact.

Closes #434

Co-authored-by: isaukywhite <50426537+isaukywhite@users.noreply.github.com>
2026-07-02 01:30:30 +02:00
..
behavior.test.js feat: refine ruleset from a full-project field review (#39) 2026-06-15 02:02:50 +02:00
commands.test.js fix: ship the missing /ponytail-help command on Claude Code and OpenCode (#62) 2026-06-15 16:32:02 +02:00
copilot-plugin.test.js fix: copilot-plugin test checks all 6 command files (#393) 2026-06-30 00:21:09 +02:00
correctness.test.js feat(benchmarks): add correctness assertion (#31) 2026-06-14 23:42:01 +02:00
gemini-extension.test.js Avoid Gemini loading Claude hook events (#139) 2026-06-19 00:24:43 +02:00
hermes-plugin.test.js Merge branch 'main' into salaamdev/main 2026-06-26 03:08:24 +02:00
hooks-windows.test.js fix: prevent Windows session freeze from stdin EOF deadlock (#477) 2026-07-02 00:18:01 +02:00
hooks.test.js feat: inject ponytail ruleset into subagents via SubagentStart hook (#254) 2026-06-24 04:19:14 +02:00
openclaw-skills.test.js feat: ship ponytail to OpenClaw (ClawHub skill package) (#102) 2026-06-16 13:35:35 +02:00
opencode-plugin.test.js feat: publish ponytail as an installable npm package for OpenCode and Pi (#197) 2026-06-24 02:09:40 +02:00
uninstall.test.js fix: don't crash uninstall on malformed settings.json (#481) 2026-07-02 01:30:30 +02:00