Is there a way to simulate the Request class from Express using ts-mockito in typescript?
I attempted the following
import { Request, Response } from "express";
const request = mock(Request);
const req: Request = instance(request);
but encountered an error on req
stating:
Type 'Request' is missing the following properties from type 'Request<ParamsDictionary>': get, header, accepts, acceptsCharsets, and 73 more.