request-mocking-protocol
Version:
A protocol for declarative mocking of HTTP requests
12 lines • 428 B
TypeScript
export declare class MatchingContext {
#private;
req: Request;
logs: string[];
params: Record<string, string>;
constructor(req: Request);
get searchParams(): URLSearchParams;
log(result: boolean, entity: string, expected: unknown, actual: unknown): void;
logDone(matched: boolean): void;
appendParams(groups?: Record<string, string | undefined>): void;
}
//# sourceMappingURL=context.d.ts.map