Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

779 B
Raw Blame
import { execFileSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
import { resolveTestPython } from '../server/lib/testHelper.js';

const python = resolveTestPython();
const testScript = fileURLToPath(new URL('./reactor_render_test.py', import.meta.url));

describe.skipIf(!python)('Reactor stream capture lifecycle', () => {
  it('captures decoder tails, rejects incomplete streams, and reaps cancelled encoders offline', () => {
    expect(() => execFileSync(python, [testScript], {
      encoding: 'utf8', timeout: 25_000, // Allow the offline suite to finish under a loaded Windows shard.
      env: { ...process.env, PYTHONIOENCODING: 'utf-8' },
      stdio: 'pipe',
    })).not.toThrow();
  });
});