Files
ruflo/memory/test-setup.ts
T
rUvandClaude dba545f012 feat: Complete Claude-Flow Advanced AI Agent Orchestration System
- Implemented comprehensive multi-agent orchestration system
- Added sophisticated task scheduling with priority management
- Built persistent memory management with hybrid SQLite/Markdown backends
- Created terminal session management with pooling capabilities
- Implemented resource coordination with deadlock detection
- Added MCP integration for tool management
- Built interactive CLI with REPL mode
- Created comprehensive test suite with 100% coverage goal
- Added CI/CD pipeline with GitHub Actions
- Implemented comprehensive documentation and guides
- Updated package.json for npm deployment
- Created claude.md comprehensive system guide

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-10 03:48:41 +00:00

35 lines
838 B
TypeScript

/**
* Test setup for SPARC Memory Bank
*/
import { beforeAll, afterAll } from 'vitest';
import * as fs from 'fs/promises';
// Global test setup
beforeAll(async () => {
// Ensure test directories exist
await fs.mkdir('/tmp', { recursive: true }).catch(() => {});
});
// Global test cleanup
afterAll(async () => {
// Clean up any remaining test files
const testDirs = [
'/tmp/memory-test',
'/tmp/backend-test-sqlite',
'/tmp/backend-test-markdown',
'/tmp/indexer-test',
'/tmp/namespace-test',
'/tmp/replication-test'
];
for (const dir of testDirs) {
await fs.rm(dir, { recursive: true, force: true }).catch(() => {});
}
});
// Mock timers configuration
global.setTimeout = setTimeout;
global.clearTimeout = clearTimeout;
global.setInterval = setInterval;
global.clearInterval = clearInterval;