You can use Chutzpah for this.
With Chutzpah, you can run tests from the command line and integrate your tests with Visual Studio Test Explorer.
Chutzpah allows you to decide whether you want to run tests from .ts files, .js files, .html files, or from all of them.
It also allows you to load external .js files (for example, dependent libraries) from your .ts unit test file with its own special :
/// <chutzpah_reference path="lib/jquery-1.9.1.min.js" /> /// <reference path="src/YourFileToBeTested.ts" />
Your unit tests can be written in TypeScript.
You can install Chutzpah from Visual Studio / Tools / Extensions and updates.
source share