Provides access to the test server instance, if available. This allows tests to interact with the server during execution, such as making HTTP requests to it or checking its status. The server property may be undefined if the test runner does not support a test server, so tests should check for its existence before attempting to use it.
Set the provider that will be used to create the test server instance. The provider should return a promise that resolves to an ITestServer instance, an ITestServer instance directly, null, or undefined.
An object that provides the test server instance
Starts the server and returns a promise that resolves when the server is ready to accept requests.
A promise that resolves when the server is ready
Interface for managing the test server instance. This allows tests to interact with the server during execution, such as making HTTP requests to it or checking its status. The server property may be undefined if the test runner does not support a test server, so tests should check for its existence before attempting to use it. The start method should start the server and return a promise that resolves when the server is ready to accept requests. The setProvider method allows setting a provider that will be used to create the test server instance, which should return a promise that resolves to an ITestServer instance, an ITestServer instance directly, null, or undefined.
Since
0.2.0