JavaScript·11 min readJest Cannot Spy The Property Because It Is Not A Function; Undefined Given Instead