Have to set config each time to run individual Jest test in IntelliJ
Answered
started a thread on SO, hopefully can get resolved quicker. Any thoughts?
Please sign in to leave a comment.
As suggested on SO, you need editing Jest run configuration template: jetbrains.com/help/idea/run-debug-configuration.html#templates: choose the desired Jest package there, select
jest.jsonas Configuration file. New configurations will use these settings, the test/suite names and paths will be set automatically based on current context, you don't need to care of specifying them explicitlyYes my mistake, had to go 1 level up as my template was wrong and was applying it to all the subsequent run configs.
I deleted all the other templates and clicked 'Edit configuration Template' set the default in there.
Then clicking on the green arrow in the tests work
Cheers