Documentation
    Preparing search index...

    Pipeline interface for executing middleware chains during testing

    interface TestingMiddlewarePipeline {
        finalHandler(handler: FinalHandler): this;
        errorHandler(handler: ErrorHandler): this;
        run(ctx: HttpContext): Promise<any>;
    }
    Index

    Methods

    • Set the final handler for the pipeline

      Parameters

      • handler: FinalHandler

      Returns this

    • Set the error handler for the pipeline

      Parameters

      • handler: ErrorHandler

      Returns this