GitNexus/gitnexus/test
Tom Hale e7f74e6143 fix(setup): use parseJsonc for idempotency check, re-parse tree after each edit
Two fixes from Copilot review on #1031:

1. installClaudeCodeHooks used JSON.parse() for the idempotency check
   on settings.json. If the file contained JSONC comments, parse would
   fail, parsed became null, hasGitnexusHook returned false, and
   duplicate hook entries could be appended. Now uses jsonc-parser's
   parse() instead.

2. mergeHooksJsonc computed insertIndex from the original tree and
   never updated it after applying edits. If two entries targeted the
   same eventName, the second iteration used a stale index and
   overwrote the previously-inserted element. Now re-parses the tree
   inside the loop so each iteration gets a fresh insertion index.
2026-04-23 00:15:15 +07:00
..
fixtures fix(group): surface friendly error when group name not found (#903 regression test) (#989) 2026-04-21 15:52:36 +01:00
helpers Fix security issues and critical bugs found in code review (#709) 2026-04-10 05:20:29 +01:00
integration feat(cli): Fingerprint indexed repos by remote URL to detect sibling-clone graph drift (#982) 2026-04-21 21:58:54 +01:00
unit fix(setup): use parseJsonc for idempotency check, re-parse tree after each edit 2026-04-23 00:15:15 +07:00
utils ci: add macOS to cross-platform test matrix (#208) 2026-03-07 10:38:32 +00:00
global-setup.ts feat: upgrade @ladybugdb/core to 0.15.2 and remove segfault workarounds (#374) 2026-03-19 08:25:43 +00:00
vitest.d.ts refactor: migrate from KuzuDB to LadybugDB v0.15 (#275) 2026-03-15 15:53:01 +00:00