I am trying to use Visual Studio 2012, Chutzpah and QUnit for unit testing on a TypeScript project and have encountered a problem.
Chutzpah successfully detects the following code and lists the test in the Test Explorer:
/// <reference path="../../modules/qunit.d.ts" />
test("A Test", () => { });
However, if I reference any TypeScript which makes use of an enum, no test is detected.
For example:
/// <reference path="../../modules/qunit.d.ts" />
module A {
export enum B { };
export var C: B;
}
test("A Test", () => { });
I am using:
Is this a bug with Chutzpah Typescript support for enums?
This was a bug in version 3.0.0. It is now fixed in the 3.0.1 release. If you upgrade this should work.