YAS/packages/ui/src
YetAnotherSuite Dev fedda0894d test: add 48 unit tests across types, ui, and web packages
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
2026-07-20 22:41:13 +02:00
..
__tests__ test: add 48 unit tests across types, ui, and web packages 2026-07-20 22:41:13 +02:00
button.tsx feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00
dialog.tsx feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00
index.ts feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00
label.tsx feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00
tabs.tsx feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00
toast.tsx feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00
tooltip.tsx feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages 2026-07-20 21:58:17 +02:00