

You can also choose another configured local or remote interpreter or click and configure a new one. In most cases, IntelliJ IDEA detects the project default interpreter and fills in the field itself. If you choose the Project alias, IntelliJ IDEA will automatically use the project default interpreter from the Node interpreter field on the Node.js page. The Run/Debug Configuration: Jest dialog opens.Īlternatively, select a test file in the Project tool window and select Create from the context menu. Open the Run/Debug Configuration dialog ( Run | Edit Configurations on the main menu), click in the left-hand pane, and select Jest from the list. In the Project tool window, select the folder with the tests, and then select Run 'Tests in '. Run all tests in a folder from the Project tool window You can also see whether a test has passed or failed right in the editor, thanks to the test status icons and in the gutter. Run a single test from the editorĬlick or in the gutter and select Run from the list. With IntelliJ IDEA, you can quickly run a single Jest test right from the editor or create a run/debug configuration to execute some or all of your tests.įor information on how to create Vitest tests for JavaScript and TypeScript code, see Vitest features on the Vitest official website. Learn more from Getting Started and Configuring Jest on the Jest official website.

In the embedded Terminal ( Alt+F12), type: For more details about plugins, see Managing plugins. In the search field, type JavaScript and TypeScript. Press Ctrl+Alt+S to open the IDE settings and select Plugins. Make sure the JavaScript and TypeScript plugin is enabled in the settings. Test status is shown next to the test in the editor with an option to quickly run it or debug it. You can see the test results in a treeview and easily navigate to the test source from there. You can run and debug tests with Jest right in IntelliJ IDEA. Learn more about the platform from the Jest official website. Jest is a testing platform for client-side JavaScript applications and React applications specifically.
