import path from "node:path"; import { mergeConfig } from "vitest/config"; import { jsdomVitestConfig } from "@repo/core-typescript/vitest.base.jsdom"; // Coverage thresholds are the honest L0 baseline inherited from // `nodeVitestConfig` (80/75/80/80 — DEFAULT_COVERAGE_BANDS.baseline, ADR-020). // The editor has no entities / use-cases / controllers layers yet, so no // per-layer band globs apply; `feature.manifest.ts` declares the same // baseline band and `feature.manifest.test.ts` guards against drift. export default mergeConfig(jsdomVitestConfig, { resolve: { alias: { "@": path.resolve(__dirname, "./src") }, }, test: { coverage: { exclude: [ // Storybook stories — excluded from vitest by design; exercised by // the Storybook test runner (`pnpm test:stories`). "src/**/*.stories.{ts,tsx}", ], }, }, });