Verify changes don't break things. Don't create test bloat.
Announce: "I'm running tests to verify the changes."
Philosophy
Database (pgTAP): This is where real logic lives. Test it thoroughly.
Frontend (Vitest): Thin RPC layer. Only test:
Complex transformations
Non-obvious edge cases
NOT: "does this call that function"
Workflow
Before implementing:
bun run test
If tests fail, fix them first.
After implementing:
bun run test
If tests fail, your change broke something. Fix it.
When to Add Tests
YES - add tests for:
New database functions with business logic
Complex data transformations
Non-obvious edge cases you discovered
NO - don't test:
"Does this function call that function"
Pinia store initialization
Vue component mounting
API calls with mocked responses
Obvious behavior readable from code
Commands
bun run test # All tests (unit + db)
bun run test:unit # Frontend only
bun run test:db # Database only (pgTAP)
If Tests Fail
Read the error message
Check if YOUR change caused it
If yes → fix your code
If no → fix the test or report the issue
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: discountedcookie-10x-mapmaster-testing3description: Testing4---56# Testing78Verify changes don't break things. Don't create test bloat.910> **Announce:** "I'm running tests to verify the changes."1112## Philosophy1314**Database (pgTAP):** This is where real logic lives. Test it thoroughly.1516**Frontend (Vitest):** Thin RPC layer. Only test:17- Complex transformations18- Non-obvious edge cases19- NOT: "does this call that function"2021## Workflow2223**Before implementing:**24```bash25bun run test26```27If tests fail, fix them first.2829**After implementing:**30```bash31bun run test32```33If tests fail, your change broke something. Fix it.3435## When to Add Tests3637**YES - add tests for:**38- New database functions with business logic39- Complex data transformations40- Non-obvious edge cases you discovered4142**NO - don't test:**43- "Does this function call that function"44- Pinia store initialization45- Vue component mounting46- API calls with mocked responses47- Obvious behavior readable from code4849## Commands5051```bash52bun run test # All tests (unit + db)53bun run test:unit # Frontend only54bun run test:db # Database only (pgTAP)55```5657## If Tests Fail58591. Read the error message602. Check if YOUR change caused it613. If yes → fix your code624. If no → fix the test or report the issue6364---65> Converted and distributed by [TomeVault](https://tomevault.io/claim/discountedcookie) — claim your Tome and manage your conversions.66<!-- tomevault:4.0:skill_md:2026-04-16 -->
Run npx skillmds@latest add tomevault-io/discountedcookie-10x-mapmaster-testing in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Testing It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.