- Use vi.hoisted() for mock variables referenced in vi.mock factories
(vitest hoists vi.mock to top of file, so variables must be hoisted too)
- Relax GET /api/plugins/options assertion to just check status 400
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>