Using rewire with Jest in Typescript Want to test some private methods or mock unexposed functions? Having trouble using rewire in Typescript Land? You are in the right place.