-
Notifications
You must be signed in to change notification settings - Fork 0
Testing
Yash Aryan edited this page Aug 8, 2026
·
1 revision
cd app
bun test
bun run typecheck- Config:
app/bunfig.toml - Preload mock:
app/test/electron-mock.tsso modules importingelectronwork under Bun
Dozens of *.test.ts files focused on:
- Agents (plan parse, workers rounds, mutex, load clamp)
- Tools / skills / web research recovery
- Documents generation / thin PDF rejection
- Project-coding helpers
- Load guard
- Renderer helpers (setup wizard, skill chips, …)
- Various pure utilities
There is little full Electron e2e. UI streaming and confirm dialogs need manual checks.
- Prefer pure functions extracted from fat modules (
ipc.tsis large — test callees). - Mock fetch / filesystem at boundaries.
- For tool rounds, assert caps (
MAX_TOOL_ROUNDS, confirm deny). - Don’t require network in unit tests; mock Ollama/Chroma.
Not fully proven by automated suite historically. For rules changes:
- Emulator rules tests if present / add them
- Manual scenario matrix (member vs admin vs outsider)
- Careful first production deploy
Release/build workflows compile and package; run typecheck + test locally before PR. Match whatever .github/workflows enforces on your branch.
| Page | Description |
|---|---|
| Home | Overview and navigation |
| Getting-Started | Local setup |
| Architecture | System design |
| Code-Structure | Directory map |
| Features | Feature inventory |
| Contributing | PR workflow |
| How-to-Change | Common change recipes |
| Gotchas | Footguns |
| Chat-Pipeline | Turn lifecycle |
| IPC-Contract | window.api |
| Auth-and-Firebase | Identity + rules |
| RAG-and-Knowledge | Vectors + graph |
| Agents | Multi-agent |
| Proxy-and-Governance | :3227 + policies |
| Configuration | Env + settings |
| Testing | bun test |
| Build-and-Release | Packaging |
| Skills | Build skills |
| Tools | Build tools |
| MCP-and-Extensions | MCP status + options |