packages/types: 27 tests - Zod schema validation for user, node, workspace, tag, link - Default values, required fields, enum constraints, edge cases packages/ui: 8 tests - Button rendering, variants, sizes, asChild, ref forwarding, disabled - Dialog trigger rendering apps/web: 13 tests - Notes store CRUD operations (add, update, remove, select, search) - Tasks store operations (add, toggle complete, priority, remove, view switching, projects) apps/api: 4 placeholders for DB-backed integration tests Infrastructure: - vitest configs for packages/types and packages/ui - jsdom test environment for UI components - localStorage mock for Zustand persist middleware in jsdom - crypto.randomUUID polyfill for test environment - Fixed create schemas to make non-essential fields optional
27 lines
477 B
JSON
27 lines
477 B
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalDependencies": ["**/.env.*local"],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", ".next/**"]
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"test": {
|
|
"outputs": ["coverage/**"]
|
|
},
|
|
"clean": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|