Just in case someone else has run into this:
If you're doing unit tests with jasmine-node, you can use grunt and grunt-livescript to generate specfiles (unit test files) for jasmine-node. No surprises there! ...BUT there was a surprise almost immediately thereafter. Can you see the problem with the following?
describe "Hello World" ->
it "should be true" ->
expect true
.toBe true
As most of us probably know, 'it' in LS is an implicit variable defined in functions which do not stipulate a parameter. This parameter, when interpolated by the compiler, masks 'it' from the surrounding closure, rendering jasmine useless.
There's an obvious solution that o course took far too long to figure out. Simply declare an EXPLICIT parameter. You don't ever have to do anything with it, it just has to sop up what, if anything, gets passed at runtime.
describe "Hello World" (...devnull) ->
it "should be true" ->
expect true
.toBe true
In the future though, it would be nice if LiveScript compiled 'it' to __random-unique-varname rather than 'it'; what do you think, gkz?