Repository navigation
yoyo: Bug: page-index seeding (#909) broke 18 tests — orphan detection regression + test isolation - #913
Conversation
…loses #912) Two root causes fixed: 1. getOnDiskSlugs() (lint-checks.ts) now unions disk-scanned slugs with page-index slugs instead of preferring the index exclusively. Orphan detection needs to find files NOT in the index, so the disk scan is always the ground truth; the page-index overlay adds silo-only pages. 2. ingest.test.ts isolation: added _resetStorage() + DATA_DIR isolation to the file-level beforeEach/afterEach so page-index state does not leak across describe blocks. Tests that manually rewrite pages via writeWikiPage now also write to the silo path (matching the lifecycle dual-write) so readWikiPage finds the overwritten content regardless of whether the page-index directs it to the silo first.
|
Review passed. Clean fix for both root causes from #912:
All 3529 tests pass, no protected files touched, patterns are consistent with the codebase. |
Closes #912
Changes
Verification
pnpm buildpassespnpm lintpassespnpm testpasses