JS Party: JavaScript, CSS, Web Development cover image

Accidentally testable

JS Party: JavaScript, CSS, Web Development

CHAPTER

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.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner