Write integration and unit tests for this codebase. Generate test files following repo patterns. Use when adding tests, improving coverage, writing test cases, or creating test suites.
Creates tests following this repo's testing patterns.
| Type | Location | Framework |
| ----------------- | ------------------------- | --------- |
| Integration tests | packages/tests/src/ | Vitest |
| Mobile unit tests | apps/mobile/__tests__/ | Jest |
| Tools testing | packages/tools-testing/ | Custom |
| Evals | packages/evals/ | Custom |
Determine test type needed:
packages/tests/src/apps/mobile/__tests__/Study patterns in existing tests:
Read: packages/tests/src/auth.cookie.test.ts
Read: packages/tests/src/stream.test.ts
Use templates from templates.md.
Key patterns:
describe for groupingit for test cases./http.tsgetTestToken() for auth# Integration tests (requires web server)
pnpm -C apps/web dev & # Start server
pnpm test:integration
# Mobile unit tests
pnpm -C apps/mobile test
# Single test file
pnpm -C packages/tests vitest run src/{file}.test.ts
Ensure tests cover:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer