Solution: Cypress Spies

Learn the solution to Cypress component testing with the spies challenge.

To complete the challenge, we need to use a spy to assert that the onClick handler doesn’t get called.

Get hands-on with 1300+ tech skills courses.