The vitest mock hoisting errors were already fixed in commit 7686974. CrossReferencePanel.test.ts and WorkerAnalyticsPanel.test.ts both use vi.hoisted() correctly and all 2399 tests pass. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>