Last Updated: February 25, 2016
·
2.178K
· modocache

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

Picture

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.rb

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
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