7. Testing & Quality Standards
Current Status
Tests are implemented with Rstest. The test framework is configured and
*.test.tsfiles exist.
Test Results (47 tests)
Testing Standards
Core Scenarios That Must Be Tested
Test Rules for New Code
- Every new tool must include unit tests for its handler
- When adding/changing parameter Zod schemas, add validation tests
- Include tests that verify
examplesactually work - Snapshot test that
guidelinesrender correctly in documentation
Current Quality Verification
Type Checking
- Each package's
tsconfig.jsonuses"noEmit": truefor type-check-only config strict: truemode enabled- CI runs
pnpm typecheckfirst for type safety
Build Verification
- Verify tsup correctly bundles all 3 entry points (index, server, cli)
- Verify DTS generation works correctly
- Releases are driven by release-please (release PR merge), so there is no release dry-run step in CI
CI Pipeline (.github/workflows/ci.yml)
pnpm install --frozen-lockfilepnpm typecheckpnpm build
Lint Standards
- Uses Rslint for linting
- Manual checks during code review:
- No
anytype usage (except tool.ts handler) - No unnecessary
console.log - No unused imports
- Consistent import style
- No
"Task Complete" Criteria
A change is considered "complete" when all of the following are met:
-
pnpm typecheckpasses -
pnpm buildcompletes successfully -
pnpm testpasses (47 tests) -
pnpm readmeupdates README.md for new tools - Commit message follows Conventional Commits format
- No unnecessary files (dist, node_modules, etc.) included in the commit
- When
packages/common/changes, rebuild and test all packages