mockErrorHandler()
Home > @backstage/backend-test-utils
> mockErrorHandler
A mock for error handler middleware that can be used in router tests.
Signature:
function mockErrorHandler(): import("express").ErrorRequestHandler<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>;
Returns:
import("express").ErrorRequestHandler<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>