There are 10 different translation services, each having four different functions that could be called: 'validate, detect, translate, get languages', and each has multiple possible failure conditions, depending on API keys used, hosts,... It's getting quite tiresome to manually check every service when I do an overhaul of their code, so it's as good time as any to start writing automated tests with Jest.
There are 10 different translation services, each having four different functions that could be called: 'validate, detect, translate, get languages', and each has multiple possible failure conditions, depending on API keys used, hosts,... It's getting quite tiresome to manually check every service when I do an overhaul of their code, so it's as good time as any to start writing automated tests with Jest.