I have a simple JavaScript file, color.js, and a matching spec file, colorSpec.js.

color.js:

function Color() 
{

}

colorSpec.js:

require('./color.js');

describe("color", function() {
  it("should work", function() {
    new Color(255, 255, 255);
  });
});

When I run jasmine-node colorSpec.js, I get the following exception:

ReferenceError: Color is not defined

How can I get Jasmine to load my color.js file before running colorSpec.js?

Edit
Report