Typeerror Cannot Read Property 0 Of Undefined Jest