是否可以在打字稿中使用ts-mockito模拟来自Express的类请求?
我尝试了以下
import { Request, Response } from "express";
const request = mock(Request);
const req: Request = instance(request);
但在说明时出现错误req
:Type 'Request' is missing the following properties from type 'Request<ParamsDictionary>': get, header, accepts, acceptsCharsets, and 73 more.