Skip to content

fix: handle { port: "0" } #823

fix: handle { port: "0" }

fix: handle { port: "0" } #823

Triggered via pull request February 7, 2025 10:42
Status Failure
Total duration 31s
Artifacts

ci.yml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

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.