Dashboardopencode-loresetup.ts network interception scope

setup.ts network interception scope

Category: gotcha
Confidence: 1.00
ID: 01a0a11b-5e2e-7c2f-af27-a80ec58fbb14
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 187WBVZrbxvlZkU1u
Created: 2026-09-14 18:08:40
Updated: 2026-09-14 18:08:40

Content

Trap: packages/core/test/setup.ts looks like global network isolation because it replaces globalThis.fetch, but it intercepts only https://models.dev/api.json and delegates every other request to the original fetch. Fix: explicitly mock or deny other network paths in tests and validation, because the shared setup alone does not prevent live server or external-network access.

Move to: