The best way depends on the application framework that you use. Most modern frameworks come with the CLIs that generate necessary configuration to write and run tests in TypeScript. If you are testing plain TypeScript code outside of any framework you would create a separate tsconfig.json file for your test files and run node.js process as we shown in the book.
Get me the mayor's office! I need to tell him about this tiny ad: