title: How to use the node.js module 'nodeunit' with coffeescript files
body: <p>I'm trying to get the nodeunit module working within a coffeescript project but can't seem to get even a basic test to run.
    Here's my example Coffeescript
      require 'nodeunit'</p>
  
  <pre><code>test = true
  test2 = false
  
  exports.testSomething = (test) -&gt;
    test.expect(1)
    test.ok(true, "this should pass")
    test.done()
  
  exports.testSomethingElse = (test2) -&gt;
    test2.expect(1)
    test2.ok(false, "this should fail")
    test2.done()
  </code></pre>
  
  <p>Unfortunately, when I run '$ nodeunit example.coffee' I get the error output:</p>
  
  <blockquote>
    <p>example.coffee:4 exports.testSomething = (test) ->
                                    ^</p>
    
    <p>module.js:296
        throw err;
        ^ SyntaxError: Unexpected token >
        at Module._compile (module.js:397:25)
        at Object..js (module.js:408:10)
        at Module.load (module.js:334:31)
        at Function._load (module.js:293:12)
        at require (module.js:346:19)
        at /usr/local/lib/node/nodeunit/lib/nodeunit.js:75:37
        at /usr/local/lib/node/nodeunit/deps/async.js:508:13
        at /usr/local/lib/node/nodeunit/deps/async.js:118:13
        at /usr/local/lib/node/nodeunit/deps/async.js:134:9
        at /usr/local/lib/node/nodeunit/deps/async.js:507:9</p>
  </blockquote>
  
  <p>Can anyone help me just get a simplified test up and running in Coffeescript using Node.js?</p>
  
  <p>Thanks in advance</p>