...

/

Ensure System Tests Fail When JavaScript Is Broken

Ensure System Tests Fail When JavaScript Is Broken

Learn what will be the outcome if JavaScript breaks in our Rails application.

We'll cover the following...

Unit testing in JavaScript

We’ll talk further about the deeper value and purpose of testing, but to briefly preview it, testing is a way to mitigate the risk of shipping broken code to production. Because of JavaScript’s unique attributes, it may seem that there is greater value in unit testing JavaScript that is already covered by system tests if that JavaScript is complex.

That said, unit testing JavaScript is not easy. There is no all-in-one testing framework, and setting up ...