WebStorm
 
Get WebStorm

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. WebStorm supports integration with the built-in test runner, so you can run your tests without installing and configuring any third-party frameworks.

WebStorm 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.

WebStorm provides all kinds of navigation among tests, test subjects, and test results, see Navigate between test and test subject, Jump to test result, and Jump to test declaration for details.