Fevol / obsidian-translate

Translate text and entire notes in Obsidian
MIT License
103 stars 6 forks source link

Writing tests for all API handlers #25

Closed Fevol closed 2 years ago

Fevol commented 2 years ago

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.