TypeScript is not a runtime language. To execute your TypeScript code you first need to compile it to JavaScript; same applies to testing it.
Your tests can be in TypeScript as well, compile both into JavaScript and use your favorite test framework to execute the tests.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…