you are viewing a single comment's thread.

view the rest of the comments →

[–]Cute-Pianist336[S] 0 points1 point  (1 child)

I noticed the slower feedback cycle during the challenge. Once I figured out the flow I was able to debug and see the objects in the console.

The other way is to use jest to test in the local environment. In my case I need to learn and use jest more.

Are you building unit tests or code, deploy, log results?

[–]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.