This guide explains how to test all the TIMPS components.
npm run buildnpm run testnpm run typecheck# Test TIMPS CLI
cd timps-code
npm run test
# Test hello function
npx ts-node -e "console.log(hello('World'))"
# Run in dev mode
npm run devExpected: CLI starts, accepts commands, and responds
# Test integration base
cd packages/integration-base
npm test
# Test specific integrations
cd packages/integration-tests
npm test -- --grep "GitHub"
npm test -- --grep "Slack"
npm test -- --grep "Stripe"Expected: Integration API calls work with mocked responses
# Test memory core
cd packages/memory-core
npm test
# Test validation
cd packages/validation
npm test
# Test cache
cd packages/cache
npm testExpected: All unit tests pass
# Start marketplace dev server
cd apps/marketplace
npm run devOpen http://localhost:3000 in browser
cd packages/memory-core-rs
cargo test
# Test NAPI bindings
node -e "require('./index.js').project_hash('.')"cd packages/workflow-engine
npm test
# Test workflow creation
node -e "
const { createWorkflowEngine } = require('./dist/index.js');
const engine = createWorkflowEngine('./.timps/test-workflows');
const wf = engine.createWorkflow({
name: 'Test Workflow',
enabled: true,
trigger: { type: 'manual', config: {} },
steps: [{ id: '1', name: 'Test', action: { type: 'notification', config: {} } }]
});
console.log('Workflow created:', wf.id);
engine.destroy();
"cd packages/enterprise
npm test
# Test auth endpoints
node -e "
const { createEnterpriseRouter } = require('./dist/index.js');
const app = require('express')();
app.use('/api', createEnterpriseRouter());
console.log('Enterprise routes registered');
"cd packages/code-review-bot
npm test
# Test webhook handler
node -e "
const { reviewPullRequest, handleWebhook } = require('./src/index.js');
console.log('Bot functions loaded');
"cd apps/mobile
npm run dev
# Test on iOS
npm run ios
# Test on Android
npm run android-
timpsCLI starts - TUI (text UI) works with arrow keys
- Agent loop processes commands
- Memory saves and loads
- Integrations connect
- GitHub: Create issue, merge PR
- Slack: Send message
- Stripe: Create payment
- OpenAI: Generate text
- Create workflow
- Run workflow manually
- Trigger on schedule
- Send notification
- User registration
- User login
- Team creation
- Invite member
- PR triggers review
- Security patterns detected
- Lint issues found
# Clean and rebuild
npm run clean
npm run build# Run specific test
npm test -- --grep "test name"
# Verbose output
npm test -- --verbose# Find errors
npm run typecheck 2>&1 | head -50# Create .env file
cp .env.example .env
# Edit with your API keys
# OPENAI_API_KEY=sk-...
# GITHUB_TOKEN=ghp_...
# etc.For real integration tests, set these environment variables:
# GitHub
GITHUB_TOKEN=ghp_xxx
GITHUB_OWNER=your-username
GITHUB_REPO=your-repo
# OpenAI
OPENAI_API_KEY=sk-xxx
# Slack
SLACK_BOT_TOKEN=xoxb-xxx
SLACK_SIGNING_SECRET=xxx
# Stripe
STRIPE_API_KEY=sk_xxx
# Etc.# Only integration tests
npm run test -- --filter=integration-tests
# Only benchmarks
npm run test -- --filter=benchmarks
# Only e2e tests
npm run test -- --filter=e2eAll tests should pass with:
- ✅
npm run buildcompletes without errors - ✅
npm run testshows no failures - ✅
npm run typecheckshows no errors