笑话报道 - /* 伊斯坦布尔忽略下一个 */ - 不起作用

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 */但似乎不起作用

覆盖结果