Best examples for component unit-test writing

Hi there.

I would like to write/modify components and unit-test them properly. The testing section of the developer doc says that you should write tests, but falls short off giving hints at what to test and how to test it. Testing in existing components varies in quality and freshness.

Could someone point to components where tests are most complete and well written so that I can use them as examples to follow?

Or even a pull request where comments would be useful (found this fairly recent Apprise PR but it is a service component)

A google search didn’t give much. Not much on the forum apart from this unanswered post.

Em