import { describe, it, expect } from 'vitest'; import { homeRouteForRole } from '../src/lib/routing.js'; describe('homeRouteForRole — what / does per user role', () => { it('cab → redirect to /pulse', () => { expect(homeRouteForRole('cab')).toBe('/pulse'); }); it('fenja → redirect to /pulse (admins see the member view by default)', () => { expect(homeRouteForRole('fenja')).toBe('/pulse'); }); it('pilot → null (render existing editorial home in place)', () => { expect(homeRouteForRole('pilot')).toBeNull(); }); });