Test Driven Development with Typescript within Visual Studio

I made a short screen cast showing some TDD with Typescript within Visual Studio.

Link to screen cast :

I’m using :
Web Essentials
Chutzpah

(see my previous post for the setup, and the jasmine type definition)

Chrome with Live Page reload

Here is the final code:

/// <reference path="libs/jasmine.d.ts"/>

/// <reference path="mylib.ts"/>

/// <reference path="mylib.js"/>

describe("some jasmine tests", () => {

    it("mylib should be able to add numbers", () => {

        var mylib = new MyLib();

        var result = mylib.add(2, 3);

        expect(result).toBe(5);

    });

});
Advertisements

2 thoughts on “Test Driven Development with Typescript within Visual Studio

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s