top | item 39960642

Testing Frontend – Lessons from a decade, leading Palantir's main frontend

15 points| Gabriel_h | 1 year ago |meticulous.ai

2 comments

order

tonyl|1 year ago

Yeh react component/Enzyme tests arent worth it

qharper|1 year ago

Yeah, the only case I've personally seen them paying off when you're using them as more of an integration test -- i.e. the component under test is a large complex one, containing many sub-components, and you want to make sure they integrate well together -- but setting up the various cases is easier at a component level than in a full ETE test (e.g. maybe render it over a list of data/prop examples and check it renders as expected). But this is relatively rare.