Typeerror Is Not A Function Typescript Jest