UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

31 lines (25 loc) 781 B
import { Readable } from 'stream' import { Request, Response } from 'express' /** * An incoming request to the Cypress web server. */ export type CypressIncomingRequest = Request & { proxiedUrl: string abort: () => void requestId: string body?: string responseTimeout?: number followRedirect?: boolean } /** * An outgoing response to an incoming request to the Cypress web server. */ export type CypressOutgoingResponse = Response & { isInitial: null | boolean wantsInjection: 'full' | 'partial' | false wantsSecurityRemoved: null | boolean body?: string | Readable } export { ErrorMiddleware } from './http/error-middleware' export { RequestMiddleware } from './http/request-middleware' export { ResponseMiddleware } from './http/response-middleware'