Kevindra Singh

Results 3 comments of Kevindra Singh

I'm also looking for the same.

I'm trying to use this method with `brcypt` but didn't have success. ```js import { compareSync } from 'bcrypt' const bcrypt = { compareSync } jest.spyOn(bcrypt, "compareSync").mockReturnValue(true); ``` Still returns...

Just sharing what worked for me. To get around it, I had to create my own `bcrypt` namespace like so: ```ts import originalBcrypt from "bcrypt"; export namespace bcrypt { export...