team-commonly/commonly/testing
- community
Checking that the SKILL.md file is still in the repository.
Testing and code quality context for Jest, React Testing Library, ESLint, and test patterns. Use when writing tests or fixing linting issues.
Install
npx vskill@latest install team-commonly/commonly/testingSKILL.md
Testing & Quality
Technologies: Jest, React Testing Library, Supertest, ESLint
Required Knowledge
- Jest test framework
- React Testing Library patterns
- API testing with Supertest
- In-memory database testing (MongoDB Memory Server, pg-mem)
- ESLint configuration
- Test-driven development
Relevant Documentation
| Document | Topics Covered | |
|---|---|---|
docs/development/LINTING.md | ESLint setup, auto-fix, IDE integration | |
docs/development/BACKEND.md | Backend testing patterns | |
docs/development/FRONTEND.md | Frontend testing patterns |
Testing Commands
INTEGRATION_TEST env var
backend/__tests__/setup.js switches between two modes:
- `INTEGRATION_TEST` not set (default): sets
PG_HOST=undefinedandMONGO_URI=undefined→ triggers in-memory MongoDB Memory Server + pg-mem - `INTEGRATION_TEST=true`: connects to real services:
- MongoDB:
localhost:27017(db:commonly-test) - PostgreSQL:
localhost:5432(db:commonly-test, user:postgres, no SSL) - Requires
./dev.sh upto be running first
Override connection strings via env vars: MONGO_URI, PG_HOST, PG_PORT, PG_DATABASE, PG_USER, PG_PASSWORD.
High-value Current Test Areas
E2E Integration Tests
- Two-Way Integration E2E:
backend/__tests__/service/two-way-integration-e2e.test.js(23 tests) - Inbound flow: External platforms (GroupMe, Discord) → Commonly via ingest endpoint
- Scheduler summarization: Buffer processing and agent event queuing
- Agent posting: commonly-bot posting summaries to pods via runtime API
- Outbound flow: Commonly → Discord webhooks / GroupMe bot API
- Full round-trip: External → Commonly → External
- Multi-agent: Clawdbot, custom agents, agent chaining
- Integrations E2E:
backend/__tests__/service/integrations-e2e.test.js - Clawdbot E2E:
backend/__tests__/service/clawdbot-e2e.test.js
Contract and Unit Tests
- Integration provider contract tests:
backend/__tests__/contracts/integrationProvider.contract.test.js. - Integration catalog + manifest validation routes.
backend/__tests__/unit/routes/integrations.catalog.test.js.backend/__tests__/unit/routes/integrations.validation.test.js.- Pod context and skill synthesis.
backend/__tests__/unit/routes/pods.context.test.js.backend/__tests__/unit/services/podContextService.test.js.backend/__tests__/unit/services/podSkillService.test.js.
Backend Testing Patterns
Unit Test
API Test
Frontend Testing Patterns
Component Test
Mock Axios
E2E Integration Testing Patterns
Two-Way Integration Test Setup
Ingest Token Creation Pattern
Agent Runtime Token Pattern
Multi-Agent Test Pattern
ESLint Configuration
Current Repo Notes (2026-02-08)
Skill catalog is generated into docs/skills/awesome-agent-skills-index.json. Gateway registry lives at /api/gateways with shared skill credentials at /api/skills/gateway-credentials (admin-only). Gateway credentials apply to all agents on the selected gateway; Skills page includes a Gateway Credentials tab. OpenClaw agent config can sync imported pod skills into workspace skills/ and writes HEARTBEAT.md per agent workspace. Social/activity route coverage now includes:
backend/__tests__/unit/routes/users.social.test.js(user follow/unfollow routes)backend/__tests__/unit/routes/activity.read.test.js(unread count + mark-read routes)backend/__tests__/unit/routes/posts.test.jsextended for thread follow routes.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingfleet-skills/testing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/team-commonly/commonly/testing)