Dashboardopencode-lorevitest.config.ts alias scope

vitest.config.ts alias scope

Category: gotcha
Confidence: 1.00
ID: 01a0a737-5781-782d-b022-0f0d7f35ba69
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0g7mbhbdijVcOi9aY
Created: 2026-09-09 17:05:56
Updated: 2026-09-15 22:36:57

Content

Trap: placing workspace source aliases under test.resolve.alias looks natural because they affect tests, but Vitest ignores that location and may resolve stale dist artifacts, masking current-source failures. Fix: define resolve.alias at the top level of vitest.config.ts so @loreai/core and @loreai/gateway resolve to their source trees.

Move to: