test(pi): sandbox review-server tests from the user's config (#1624)
apps/pi-extension/server.test.ts and packages/server/review-workspace.test.ts boot real review servers that read config.json from the data dir. The root bunfig preload points PLANNOTATOR_DATA_DIR at a temp dir, but bun only loads it from the repo root; run from the package directory (apps/pi-extension's own `bun test` script, or `bun test` inside packages/server) the tests read the contributor's real ~/.plannotator/config.json. With reviewAnalysis.semanticDiff: false there, 6 tests fail in each file. Point PLANNOTATOR_DATA_DIR at a fresh temp dir in a beforeEach; the existing afterEach already restores it.
M
Michael Ramos committed
3943ebe85288ae7c7cc8e445f4b1eef10c595565
Parent: 73b6d28
Committed by GitHub <noreply@github.com>
on 9/28/2026, 3:03:29 PM