import path from "node:path"; import { mergeConfig } from "vitest/config"; import { nodeVitestConfig } from "@repo/core-typescript/vitest.base.node"; // Coverage excludes mirror the feature-package pattern (see // packages/auth/vitest.config.ts): framework glue is excluded, thresholds // stay inherited from the shared base — never lowered here. export default mergeConfig(nodeVitestConfig, { test: { coverage: { exclude: [ // Payload-generated admin UI + API mount points: importMap.js is // stamped "GENERATED AUTOMATICALLY BY PAYLOAD"; the layout/page/ // route files are one-line re-exports of @payloadcms/next handlers. // Exercised through the running CMS, not unit-testable. "src/app/**", ], }, }, resolve: { alias: { "@": path.resolve(__dirname, "./src") } }, });