code: function() {
    require('coffee-script')
  
    var path = require('path')
    var fs = require('fs')
    var Mocha = require('mocha')
  
    // Allow unlimited listeners for tests.
    process.setMaxListeners(0)
  
    var testDir = path.resolve(__dirname, '../test')
    var files = fs.readdirSync(testDir).filter(function(f) {
      return f.match(/\.js$/)
    })
  
    var mocha = new Mocha({
      reporter: 'spec'
    })
  
    for (var i = 0; i < files.length; i++) {
      var file = files[i]
      mocha.addFile(path.resolve(testDir, file))
    }
  
    mocha.run(function(failures) {
      var exitCode = failures === 0 ? 0 : 1
  
      process.send({
        type: 'shutdown',
        code: exitCode
      })
      process.exit(failures)
    })
  }
docs: Tests FYI: This is ridiculous.