Typeerror Cannot Read Property Origin Of Undefined Jest