fix: align dashboard host warnings with effective bind

This commit is contained in:
Tam Nhu Tran committed 2026-03-17 09:58:11 -04:00
1 parent 553f8ac1e5
commit dcc67477ec
13 files changed
+385 -47

No files matched your search

@@ -18,6 +18,14 @@ afterEach(async () => {
});
describe('startServer host binding', () => {
it('binds with system-default host when no host is provided', async () => {
const instance = await startServer({ port: 0 });
instances.push(instance);
const address = instance.server.address() as AddressInfo;
expect(address.port).toBeGreaterThan(0);
});
it('binds to an explicit loopback host', async () => {
const instance = await startServer({ port: 0, host: '127.0.0.1' });
instances.push(instance);