PyCharm
 
Get PyCharm

Testing TypeScript

Last modified: 31 July 2024

Starting with version 20, Node.js comes shipped with a stable version of the built-in Node.js test runner. PyCharm supports integration with the built-in test runner, so you can run your tests without installing and configuring any third-party frameworks.

PyCharm provides out-of-the-box configuration for the ts-node and tsx loaders, so you can run and debug your TypeScript tests without previously compiling them into JavaScript. Alternatively, you can install a custom loader and configure it as described in Create a Node.js Test Runner run/debug configuration.

You can run and debug tests right from the editor or launch a run/debug configuration of the type Node.js Test Runner.