Skip to content

Connectum API Reference / @connectum/testing / types / TestServer

Interface: TestServer ​

Defined in: testing/src/types.ts:26

A running test server with transport and cleanup.

Properties ​

baseUrl ​

baseUrl: string

Defined in: testing/src/types.ts:30

Server base URL (e.g. http://localhost:54321).


port ​

port: number

Defined in: testing/src/types.ts:32

Assigned port number.


transport ​

transport: Transport

Defined in: testing/src/types.ts:28

Pre-configured client transport connected to the test server.

Methods ​

close() ​

close(): Promise<void>

Defined in: testing/src/types.ts:34

Stop the server and close all connections.

Returns ​

Promise<void>