import { describe, expect, it } from 'vitest'; import { DEV_CLIENT_HOST, DEV_CLIENT_PORT, resolveDevelopmentClientUrl } from './dev-client-url.rules'; describe('dev-client-url.rules', () => { it('targets loopback IPv4 so dev wait-on avoids stale localhost IPv6 listeners', () => { expect(DEV_CLIENT_HOST).toBe('127.0.0.1'); expect(DEV_CLIENT_PORT).toBe(4200); }); it('builds the HTTP dev client URL', () => { expect(resolveDevelopmentClientUrl(false)).toBe('http://127.0.0.1:4200'); }); it('builds the HTTPS dev client URL', () => { expect(resolveDevelopmentClientUrl(true)).toBe('https://127.0.0.1:4200'); }); });