medcore-route-test

Official

Close API route test gaps with safe unit coverage

AuthorGlobussoft-Technologies
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It eliminates missing or fragile unit test coverage for MedCore Express route handlers by giving you a deterministic Vitest scaffold that pins RBAC behavior, Zod validation failures, and side effects without requiring a real database.

Core Features & Use Cases

  • Route surface discovery: Extracts every HTTP method/path registration, auth/RBAC middleware ordering, Zod schemas, Prisma calls, state-machine guards, and audit-log writes from apps/api/src/routes/<x>.ts.
  • Mock-safe unit tier: Generates unit tests that use hoisted Prisma mocks (no Postgres) and validates response shapes and error status codes.
  • Behavior-driven coverage strategy: Plans test clusters for unauthenticated, forbidden roles, validation rejections, happy paths, idempotency/fraud guards (where applicable), and audit-log assertions.

Quick Start

Use the medcore-route-test skill to scaffold apps/api/src/routes/<x>.test.ts by asking it to “write a unit test for /api/v1/<resource> route <x>”, optionally specifying which endpoints to cover.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: medcore-route-test
Download link: https://github.com/Globussoft-Technologies/medcore/archive/main.zip#medcore-route-test

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.