Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

docs: document testing commands and workflows

Tinde1f10278cef
diff --git a/CLAUDE.md b/CLAUDE.md
index 90e8fdf5e..0582f5fea 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -229,7 +229,7 @@ See `ENVIRONMENT_SETUP.md` for detailed configuration and troubleshooting.
- **Development Ports**: API runs on 1337, web runs on 5173
- **Hot Reload**: Both API and web have watch mode via `pnpm dev`
- **CORS**: Configured in API index.ts, controlled by `CORS_ORIGINS` env var
-- **No Tests Yet**: Test infrastructure not currently set up in this codebase
+- **Testing**: Run `pnpm test` at the repo root (Turbo runs `test` in packages that define it: API unit tests, web unit/component tests, shared packages). API integration tests: `pnpm test:integration` (requires PostgreSQL; env is set in `tests/api-integration/setup.ts`; CI uses `.github/workflows/ci.yml`). Vitest configs: `apps/api/vitest.config.ts` (unit), `apps/api/vitest.integration.config.ts` (integration), `apps/web/vitest.config.ts` (web). Integration tests live under `tests/api-integration/`; API unit tests under `tests/api/`.
- **Security**: Never commit secrets, always validate inputs, sanitize outputs
## Common Patterns
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6ffe9eab3..8f8e83f49 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -74,7 +74,7 @@ git checkout -b fix/whatever-youre-fixing
git checkout -b feat/cool-new-feature
```
-2. **Make your changes** and test them locally
+2. **Make your changes** and test them locally (`pnpm test` for unit tests; `pnpm test:integration` for API integration tests with PostgreSQL)
3. **Commit using conventional commits**:
```bash