Testing Vue Components with Cypress

November 07, 2023 25 min Free

Description

This talk dives into Cypress component testing for Vue.js, demonstrating how to mount components and test their behavior from a user's perspective within the browser. Mark Noonan covers best practices for slots, props, events, and scenarios like providing a router or global store to components. The presentation walks through fixing failing component tests, introduces Cypress, and highlights its advantages over traditional browserless testing methods, emphasizing its ability to leverage the real DOM for debugging and a more natural testing approach.