@shopify/react-server
Version:
Utilities for React server-side rendering.
15 lines (14 loc) • 471 B
TypeScript
import { Server } from 'http';
import { Context } from 'koa';
import { KoaNextFunction } from '../types';
export declare class TestRack {
private servers;
unmountAll(): void;
mount(mountFunction: ({ port: number, ip: string }: {
port: any;
ip: any;
}) => Server, options?: RequestInit): Promise<{
request: () => Promise<Response>;
}>;
}
export declare function mockMiddleware(_: Context, next: KoaNextFunction): Promise<void>;