JS Party: JavaScript, CSS, Web Development cover image

Accidentally testable

JS Party: JavaScript, CSS, Web Development

00:00

Cypress Component Test Runner

It surprises you how little work it takes to test after you get it mounted. I like to break down component testing into three phases. It's get the thing on the page, mount it and interact with it. That's phase one is like get it on the page. Interact with it. Click it. Get different elements, buttons, whatever. And then assert that it looks the way it's supposed to. Once it's mounted, once it's built, everything else is like cake for me.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app