Testing Frontend – Lessons from a decade, leading Palantir's main frontend
1–3 of 3 posts
Re: Testing Frontend – Lessons from a decade, leading Palantir's main frontend
#2Yeh react component/Enzyme tests arent worth it
Re: Testing Frontend – Lessons from a decade, leading Palantir's main frontend
#3Yeh react component/Enzyme tests arent worth it
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.