jest coverage - /* istanbul ignore next */ - not working

Viewed 70

Wanted this part of the code to be ignored in jest coverage

/* 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()
}

I tried with /* istanbul ignore next */ but it doesn't seem to work

coverage result

0 Answers
Related