fix: handle { port: "0" }
#823
Annotations
7 errors
test/index.test.ts > random port > { random: true }:
src/_internal.ts#L54
TypeError: Cannot convert undefined or null to object
❯ Module._getLocalHosts src/_internal.ts:54:35
❯ checkPort src/get-port.ts:159:12
❯ getRandomPort src/get-port.ts:129:22
❯ Module.getPort src/get-port.ts:59:12
❯ test/index.test.ts:76:24
|
test/index.test.ts > random port > getRandomPort:
src/_internal.ts#L54
TypeError: Cannot convert undefined or null to object
❯ Module._getLocalHosts src/_internal.ts:54:35
❯ checkPort src/get-port.ts:159:12
❯ Module.getRandomPort src/get-port.ts:129:22
❯ test/index.test.ts:82:24
|
test/index.test.ts > random port > { port: 0 }:
src/_internal.ts#L54
TypeError: Cannot convert undefined or null to object
❯ Module._getLocalHosts src/_internal.ts:54:35
❯ checkPort src/get-port.ts:159:12
❯ getRandomPort src/get-port.ts:129:22
❯ Module.getPort src/get-port.ts:59:12
❯ test/index.test.ts:88:24
|
test/index.test.ts > random port > { port: '0' }:
src/_internal.ts#L54
TypeError: Cannot convert undefined or null to object
❯ Module._getLocalHosts src/_internal.ts:54:35
❯ checkPort src/get-port.ts:159:12
❯ getRandomPort src/get-port.ts:129:22
❯ Module.getPort src/get-port.ts:59:12
❯ test/index.test.ts:94:24
|
ci (ubuntu-latest)
Process completed with exit code 1.
|
ci (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
ci (windows-latest)
The operation was canceled.
|