unit test using typescript and karma -
i using karma, jasmine, typescript write unit test helloworld application https://angular.io/docs/js/latest/quickstart.html . below test code: ///<reference path="../typings/jasmine/jasmine.d.ts"/> import { myappcomponent } '../spray1'; describe("name alice", () => { var comp = new myappcomponent(); it("verify name", () => { expect(comp.name).tobe("alice"); }); }); tsc (with "--module commonjs") transpiles test code into: ///<reference path="../typings/jasmine/jasmine.d.ts"/> var spray1_1 = require('../spray1'); describe("name alice", function () { var comp = new myappcomponent_1.myappcomponent(); it("verify name", function () { expect(comp.name).tobe("alice"); }); }); karma fails run unit test: uncaught error: module name "../myappcomponent" has not been loaded yet context: _. use requir