1

I want to run the tests of my frontend project, but everytime I want to start a test I get the following error:

Log

In the Run Configurations, IntelliJ selected @angular/cli as default Jest package, which is wrong.

Wrong Jest package

The correct Jest package should be jest.
After I select the correct package, Jest works and runs the selected test.

Correct Jest package

I have to do this, everytime I want to run a test.
This is not a local problem, my coworkers have the same problem in this project.

1 Answer 1

0

Try editing Jest run configuration template: choose the desired Jest package there, save the configuration. New configurations created from gutter/right-click menus will use these settings, you won't need to care of specifying them for each configuration

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.