Workaround for broken `jasmine-node --autotest` on OS X

According to this issue on the jasmine-node repo on Github, autotesting is broken on OS X. I encountered issues where autotesting would exit whenever a file was modified. The proposed workaround didn't work for me, but this did:
$ gem install watchr
Then create a new file:
# $PROJECTDIR/autotest.rb
watch('.*') { |match_data_object| system('jasmine-node .') }
You can run tests like so:
$ watchr autotest.rbWritten by Brian Gesiak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tdd
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#