Ara*_*uxo 5 javascript istanbul test-coverage jestjs
希望在玩笑覆盖范围中忽略这部分代码
/* istanbul ignore next */
async middleware(
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>,
_res: Response<any, Record<string, any>>,
next: NextFunction
) {
const { email, password } = req.body
await validate({ email, password })
next()
}
Run Code Online (Sandbox Code Playgroud)
我尝试过,/* istanbul ignore next */但似乎不起作用
| 归档时间: |
|
| 查看次数: |
1745 次 |
| 最近记录: |