Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

New Post: Typescript tests as part of MSBUILD

$
0
0
I have tried it, it does not work. Because the typescript do not add the reference while compile to javascript. For example,
Typescript:
/// <reference path="qunit.d.ts" />
/// <reference path="codeTS.ts" />

test("will time 5", function () {
var res = mathLib.add5(10)

equal(res, 50, "time 5");
});

Javascript:
test("will time 5", function () {
var res = mathLib.add5(10);
equal(res, 50, "time 5");
});

While it builds, it tells mathLib is undefined.

The problem for me is the configuration file for loading typescript in TFS server do not seem work for me. The build told me that it can't find test case in typescript files. Can someone know what the configuration put or edit in order to make the build work with Typescript??

Viewing all articles
Browse latest Browse all 1864

Trending Articles