mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-27 22:45:03 +00:00
The scenario-metrics route test now imports a module chain (route → overlay.ts) that carries `import "server-only"`, which Vite can't resolve to a Node entry. Alias it to an empty stub so the guard stays in app code while Node-env tests load. Full suite: 600 passing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 lines
383 B
TypeScript
6 lines
383 B
TypeScript
// Empty stub for the `server-only` marker package under Vitest. The real
|
|
// package resolves to an empty module on the server and a throwing one in the
|
|
// browser via export conditions Vite doesn't apply here; aliasing it keeps
|
|
// server-only guards in place in app code without breaking Node-env tests that
|
|
// import a module chain containing one. See vitest.config.ts.
|
|
export {};
|