लगता है एक और परीक्षण धावक / ढांचे नजरबंद कहा जाता है। https://theintern.github.io/
यहाँ टाइपप्रति के साथ संयुक्त एक लेख है कि यह कैसे उपयोग करने के लिए समझा है: https://www.sitepen.com/blog/2015/03/24/testing-typescript-with-intern/
बहुत आशाजनक लगता है जब आप टाइपप्रति का उपयोग कर रहे हैं और आप एक इकाई के परीक्षण सेटअप है कि स्रोत नक्शे का समर्थन करता है के लिए देख रहे हैं।
उदाहरण टेस्ट:
import registerSuite = require('intern!object');
import assert = require('intern/chai!assert');
// Assume that we now have a version of our model in TypeScript:
import SimpleTodoModel = require('todo/model/SimpleTodoModel');
registerSuite({
name: 'SimpleTodoModel',
// Assume we have a promises interface defined
'default data'() {
var emptyModel = new SimpleTodoModel(),
id:string = emptyModel.get('id'),
length:number = emptyModel.get('todos').length,
incomplete:number = emptyModel.get('incomplete'),
complete:number = emptyModel.get('complete');
assert.strictEqual(id, 'todos-dojo',
'Id should default to "todos-dojo"');
assert.strictEqual(length, 0,
'Todos array should default to an empty array.');
assert.strictEqual(incomplete, 0,
'Incomplete count should default to 0.');
assert.strictEqual(complete, 0,
'Incomplete count should default to 0.');
}
});