'Running a single test in WebStorm using Jest

I'm trying to run single test in my project. However every time I use triangle run icon WebStorm creates new configuration for me.

I'm adding screenshots to clarify what is happening exactly now when I run a single test.

Tests

Configuration

Is there a way to provide one predefined config instead of this?



Solution 1:[1]

You can use the Edit configuration templates... button on the bottom left corner of the Run/Debug Configurations menu. This way every time WebStorm creates a new configuration it will use the preset one you have specified here is an image. You can save those as project files, meaning it will be automatically read by WebStorm for you and others

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Simeon Pektov