Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

772 B
Raw Blame
import { describe, it, expect } from 'vitest';

describe('@claude-flow/hooks', () => {
  it('should export hook types', () => {
    // Placeholder test - hooks module exports types and utilities
    expect(true).toBe(true);
  });

  it('should support hook registration', () => {
    // Hooks can be registered for pre/post events
    const hooks = new Map<string, Function[]>();
    hooks.set('pre-edit', [() => {}]);
    expect(hooks.has('pre-edit')).toBe(true);
  });

  it('should support hook execution', async () => {
    // Hooks execute in order
    const results: number[] = [];
    const hooks = [
      () => results.push(1),
      () => results.push(2),
    ];
    for (const hook of hooks) {
      hook();
    }
    expect(results).toEqual([1, 2]);
  });
});