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

722 B
Raw Blame
// @vitest-environment node

import { describe, it, expect, vi } from 'vitest';

// RunsTab pulls in the API barrel transitively; stub it so importing the
// module for the pure-helper test doesn't drag real HTTP wrappers into scope.
vi.mock('../../../services/api', () => ({}));

import { runLogProcessName } from './RunsTab';

describe('runLogProcessName', () => {
  it('maps cos-agent runs to the portos-cos process', () => {
    expect(runLogProcessName('cos-agent')).toBe('portos-cos');
  });

  it('maps devtools and unknown sources to the main portos-server process', () => {
    expect(runLogProcessName('devtools')).toBe('portos-server');
    expect(runLogProcessName(undefined)).toBe('portos-server');
  });
});