Type Alias SetupServerOrWorker

SetupServerOrWorker: {
    listHandlers: (() => RequestHandler[]);
    resetHandlers: ((...handlers: RequestHandler[]) => void);
    restoreHandlers: (() => void);
    start: ((options?: SetupServerOrWorkerOptions) => Promise<void>);
    stop: (() => void);
    type: "server" | "worker";
    use: ((...handlers: RequestHandler[]) => void);
}

An MSW server or worker.

Type declaration