Ruby Rogues cover image

Turbo with Rails Creates Happiness ft. Alexandre Ruban - RUBY 567

Ruby Rogues

00:00

Is There a Way to Test a Stimulus Controller?

For me, it's basic. I'll probably have some kind of unit test and maybe some level of controller test if I'm really concerned about anything beyond kind of the basic functionality that's already in rails. And then on the front end, it's the same deal, right? If it's just a fundamental, hey, this is something that this framework does over and over and over again, then, yeah, I tend to not test that so much. But if there's a complex interaction, if I've written a bunch of JavaScript in one of the stimulus controllers and I'm trying to make sure that it does what it's supposed to do, I'll write a test around that

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