feat: Sprint 2 — test coverage, Dependabot, coverage gates, E2E expansion
API Router Integration Tests (43 new tests): - dashboard-router.test.ts: 11 tests (all 5 queries + RBAC) - project-router.test.ts: 17 tests (full CRUD + batch ops + RBAC) - resource-router-crud.test.ts: 15 tests (CRUD + hover card + skill import) - Fix: mock budget-alerts + cache in existing allocation/timeline tests E2E Test Suite Expansion (29 new tests, 7 spec files): - dashboard.spec.ts: widget grid, stat cards, add widget modal - allocations.spec.ts: list, create modal, filters, column toggle - estimates.spec.ts: list, wizard steps, navigation - vacations.spec.ts: self-service, management, team calendar - staffing.spec.ts: search, suggestions, skill tags - admin.spec.ts: settings, users, roles, blueprints - navigation.spec.ts: nav links, sidebar collapse, theme, mobile menu Coverage Gates: - api package: 80% lines, 75% branches - application package: 80% lines, 75% branches (new vitest.config.ts) - shared package: 70% lines, 65% branches - CI updated to run per-package vitest --coverage Dependabot: - Weekly npm dependency checks with grouped minor+patch - GitHub Actions version checks - 10 PR limit for npm, 5 for Actions Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -133,8 +133,14 @@ jobs:
|
||||
- name: Generate Prisma client
|
||||
run: pnpm --filter @planarchy/db exec prisma generate
|
||||
|
||||
- name: Run unit tests
|
||||
run: pnpm test:unit
|
||||
- name: Run unit tests with coverage
|
||||
run: |
|
||||
pnpm --filter @planarchy/engine exec vitest run --coverage
|
||||
pnpm --filter @planarchy/staffing exec vitest run --coverage
|
||||
pnpm --filter @planarchy/api exec vitest run --coverage
|
||||
pnpm --filter @planarchy/application exec vitest run --coverage
|
||||
pnpm --filter @planarchy/shared exec vitest run --coverage
|
||||
pnpm --filter @planarchy/db test:unit
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Build — depends on typecheck passing
|
||||
|
||||
Reference in New Issue
Block a user