TDD with Typescript and Jest: Url shortener