Introduction to Testing with Cypress
Using tests to validate that the code is doing what we think it is
Using tests to help development by allowing us to rapidly run situations that would take a long time to recreate manually
Why focus on just one tool? The various tools overlap in functionality but differ in terminology just enough that discussing more than one of them at a time would be confusing.
Why end-to-end testing? The Stimulus team makes it clear that end-to-end server testing is the preferred way of testing Stimulus behavior. While it’s theoretically possible to test Stimulus controllers or React components in isolation from a server, it’s not recommended for Stimulus, and the React process is also rather complex.