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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
import { describe, expect, it, vi } from 'vitest';
import { up } from './004-stacker-news-case-insensitive-usernames.js';
describe('Stacker News username identity migration', () => {
it('enforces case-insensitive uniqueness at the database boundary', async () => {
const query = vi.fn(async () => ({ rows: [] }));
await up({ query });
expect(query).toHaveBeenCalledWith(expect.stringContaining('LOWER(username)'));
});
});