diff --git a/test/javascripts/jshint_all.js.erb b/test/javascripts/jshint_all.js.erb
index 1f12744a8c3..3854f883ef0 100644
--- a/test/javascripts/jshint_all.js.erb
+++ b/test/javascripts/jshint_all.js.erb
@@ -165,6 +165,8 @@ var jsHintOpts = {
         ok = false if (filename =~ ig)
       end
 
+      depend_on filename
+
       result << "qHint('#{filename}', '/assets/#{filename}', jsHintOpts);\n" if ok
 
     end