Cover null runtime port startup rejection
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
933cc42054
commit
eef8485eb4
1 file changed
+9
@@ -203,6 +203,15 @@ describe("runtimeApiServer", () => {
|
||||
).rejects.toThrow("Invalid runtime port");
|
||||
});
|
||||
|
||||
it("rejects startup when runtime port is null", async () => {
|
||||
await expect(
|
||||
startRuntimeApiServer({
|
||||
port: null as unknown as number,
|
||||
launchCwd: process.cwd(),
|
||||
}),
|
||||
).rejects.toThrow("Invalid runtime port");
|
||||
});
|
||||
|
||||
it("rejects startup when runtime port is infinite", async () => {
|
||||
await expect(
|
||||
startRuntimeApiServer({
|
||||
|
||||
Reference in new issue
Block a user