@nodeboot/ghost-server
Version:
Node-Boot Ghost Server for Pure IoC Applications. Suitable for Auto-configuration testing, background jobs, etc
27 lines • 938 B
TypeScript
import { JsonObject } from "@nodeboot/context";
import { BaseServer, NodeBootAppView } from "@nodeboot/core";
import { GhostDriver } from "../driver";
import { Server } from "http";
export declare class GhostServer extends BaseServer<unknown, unknown> {
private readonly driver;
constructor();
run(additionalConfig?: JsonObject): Promise<GhostServer>;
/**
* No real HTTP listening here.
* For testing, CLI, or auto-configuration, this resolves immediately.
*/
listen(): Promise<NodeBootAppView>;
/**
* For CLI or tests, simulate shutting down any resources.
*/
close(): Promise<void>;
/**
* Provide access to the driver to manually execute actions with mock requests.
*/
getDriver(): GhostDriver;
configureHttpLogging(): Promise<void>;
getHttpServer(): Server;
getFramework(): unknown;
getRouter(): unknown;
}
//# sourceMappingURL=GhostServer.d.ts.map