Run a block of code with a server for the given application.
Run a block of code with a server for the given application.
The passed in block takes the port that the application is running on. By default, this will be a random ephemeral port. This can be changed by passing in an explicit port with the config parameter.
The application for the server to server.
The configuration for the server. Defaults to test config with the http port bound to a random ephemeral port.
The block of code to run.
The server provider.
The result of the block of code.
Run a block of code with a server for the given routes.
Run a block of code with a server for the given routes.
The passed in block takes the port that the application is running on. By default, this will be a random ephemeral port. This can be changed by passing in an explicit port with the config parameter.
The configuration for the server. Defaults to test config with the http port bound to a random ephemeral port.
The routes for the server to server.
The block of code to run.
The server provider.
The result of the block of code.
Utilities for creating a server that runs around a block of code.