YAS/packages/ui/package.json
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

43 lines
1.2 KiB
JSON

{
"name": "@yetanother/ui",
"private": true,
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"scripts": {
"lint": "eslint src/",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"clean": "rm -rf .turbo node_modules"
},
"dependencies": {
"react": "^19.1.0",
"clsx": "^2.1.0",
"tailwind-merge": "^3.2.0",
"@yetanother/utils": "workspace:*",
"@radix-ui/react-slot": "^1.2.0",
"@radix-ui/react-dialog": "^1.1.0",
"@radix-ui/react-dropdown-menu": "^2.1.0",
"@radix-ui/react-tooltip": "^1.2.0",
"@radix-ui/react-popover": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.2.0",
"@radix-ui/react-label": "^2.1.0",
"lucide-react": "^0.510.0",
"@tanstack/react-query": "^5.75.0"
},
"devDependencies": {
"@yetanother/tsconfig": "workspace:*",
"@yetanother/eslint-config": "workspace:*",
"@types/react": "^19.1.0",
"typescript": "^5.8.0",
"eslint": "^9.25.0",
"tailwindcss": "^4.1.0",
"vitest": "^3.1.0",
"@testing-library/react": "^16.3.0",
"@testing-library/jest-dom": "^6.6.0",
"jsdom": "^26.0.0"
}
}