I've been working on a new Angular 16 project, and tried to run tests through IntelliJ only to discover that IntelliJ couldn't find the config file. That's a new one. I checked the package.json and Karma was installed, but no config.

Where did it go? It turns out I had to run this command to generate the config:

view plain print about
1ng generate config karma

You'll see something like this:

And now I can run unit tests from IntelliJ without issue. Apparently a recent change to Angular was to remove the config file, and set up the config on-demand in memory, so unit tests should still work if you run them through the Angular CLI using ng test.

I'll often tweak configurations, so it is nice to know I can still use an external file.