<div dir="ltr">I have a conundrum. Whereas:<div><br></div><div>* JS testing is easiest if done with a bunch of static HTML/JS files rather than booting a web framework and various weird opaque and brittle glue libraries, especially if you want to use a runner/CI system like TestSwarm, Testling, Karma, Testem or Buster</div>
<div><br></div><div>* Testing your production files is better than testing your source code</div><div><br></div><div>* The Rails 3 asset pipeline produced files both with and without digest hashes in the filename, and you could use the predictable digest-less names for test setup (even though compiling assets in development mode produces other weird bugs because of Heroku using ActionDispatch::Static in production)</div>
<div><br></div><div>* The Rails 4 asset pipeline no longer produces digest-less files</div><div><br></div><div>Therefore:</div><div><br></div><div>How do you test your JS? My opinion so far is to just write source JS that doesn't require a build step, or use a build system that's not coupled to Rails.</div>
<div><br></div><div>Your thoughts?<br clear="all"><div><br></div>-- <br>James Coglan<br><a href="http://jcoglan.com">http://jcoglan.com</a><br>+44 (0) 7771512510
</div></div>