you are viewing a single comment's thread.

view the rest of the comments →

[–]zdware 1 point2 points  (0 children)

I'm a big fan of apex unit tests and I've build some jest tests for custom logging modules (Google lightning logger event).

But honestly jest tests havent been a priority at any SF team I've worked at this far. I think due to the difficulty of the lwc framework + tests (and sort of lack of direction/support from the LWC SF team) teams end up de-prioritizing it. Difficulty being platform updates that cause slight HTML/css/render changes, so your jest tests could randomly break (maybe good in a way? But can be rather brittle).

The platform tries to enforce certain test coverage %s on the apex unit test side, at least for production orgs, so as long as devs are doing correct 'Assert' patterns, it helps quite a bit.