Roots Discourse

Test javascript and php


How guy did you test your code with Sage?


I think this is very subjective and project-dependant.
Anyway in my workflow I use phpunit to test the php models I write for my theme/plugins and Jest to test my javascript!
I don’t write tests for every single project though, only the ones where there’s enough budget to allow for it.