Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
Testing And Validation
All paths are relative to apps/switch-console-desktop/.
Core Local Gate
Run these before merging (from the repo root or apps/switch-console-desktop/):
pnpm run format
pnpm run lint
pnpm run typecheck
pnpm run test
Test Layout
- main-process tests: colocated in
src/main/core/**/*.test.ts - renderer unit tests:
src/renderer/tests/ - renderer browser tests:
src/renderer/tests/browser/(run via Playwright)
Current Setup
- Vitest config is in
vitest.config.ts(separate from the build config inelectron.vite.config.ts). - Five test projects:
node—src/**/*.test.tsexcluding_*dirs, browser tests, migration tests, and*.db.test.tsundersrc/main/core/andsrc/main/db/main-db—src/main/core/**/*.db.test.tsandsrc/main/db/**/*.db.test.tsagainst real SQLitefixtures— fixture generator, run viapnpm run db:fixturesmigrations—src/main/db/tests/migrations/**, run viapnpm run test:migrationsbrowser—src/renderer/tests/browser/**/*.test.{ts,tsx}via Playwright
pnpm run testruns thenode,main-db,migrations, andbrowserprojects.- Both project globs still mention
src/main/db/legacy-port/, which no longer exists. The globs are harmless but match nothing — do not go looking for that directory. - Tests use per-file
vi.mock()setup. - Integration-style tests create temporary project directories in
os.tmpdir().
Pre-merge Checks
- Run these locally before merging:
pnpm run format:checkpnpm run typecheckpnpm run lint
- Run the tests locally before merging as well.
Focused Validation
- after IPC/RPC changes: rerun the affected Vitest file and confirm the controller is wired in
src/main/rpc.ts - after SDK session changes: rerun the closest
src/main/core/test files - after schema changes: run
pnpm run db:fixturesandpnpm run test:migrations