@nevware21/tripwire - v0.1.8
    Preparing search index...

    Interface IServerManager

    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.

    0.2.0

    interface IServerManager {
        server: ITestServer | IPromise<ITestServer>;
        setProvider(provider: ITestServerProvider): void;
        start(): ITestServer | IPromise<ITestServer>;
    }
    Index
    server: ITestServer | IPromise<ITestServer>

    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.

      Parameters

      Returns void