Schema additions for issues #37-41: New models: - Domain (#37): Life domains (work, marriage, homelab, etc.) - Idea (#38): Brain dumps with pgvector embeddings - Relationship (#39): Generic entity linking (blocks, depends_on) - Agent (#40): ClawdBot agent tracking with metrics - AgentSession (#40): Conversation session tracking - WidgetDefinition (#41): HUD widget registry - UserLayout (#41): Per-user dashboard configuration Updated models: - Task, Event, Project: Added domainId foreign key - User, Workspace: Added new relations New enums: - IdeaStatus: CAPTURED, PROCESSING, ACTIONABLE, ARCHIVED, DISCARDED - RelationshipType: BLOCKS, BLOCKED_BY, DEPENDS_ON, etc. - AgentStatus: IDLE, WORKING, WAITING, ERROR, TERMINATED - EntityType: Added IDEA, DOMAIN Migration: 20260129182803_add_domains_ideas_agents_widgets
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "path";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: false,
|
|
environment: "jsdom",
|
|
include: ["src/**/*.test.tsx", "src/**/*.test.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json", "html"],
|
|
exclude: [
|
|
"node_modules/",
|
|
".next/",
|
|
"**/*.config.*",
|
|
"**/*.d.ts",
|
|
"**/layout.tsx", // Minimal server components
|
|
"src/app/**", // App directory files are mostly routing
|
|
// Unimplemented features (will be tested when implemented)
|
|
"src/components/calendar/**",
|
|
"src/components/layout/**",
|
|
"src/lib/api/events.ts",
|
|
],
|
|
include: [
|
|
"src/components/**",
|
|
"src/lib/**",
|
|
],
|
|
thresholds: {
|
|
lines: 85,
|
|
functions: 85,
|
|
branches: 85,
|
|
statements: 85,
|
|
},
|
|
},
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
});
|