All of my unit tests are written using Jasmine or Mocha, an awesome BDD libraries. Recently I switched how data for tests is set up from declaring and assigning to closures, to defining lazy variables using bdd-lazy-var, and I've seen some awesome benefits from doing such.
Up until recently, a typical unit test looked something like this:
var BaseClass = require('../../www/BaseClass')