Boilerplate karma.conf.js with karma init

I’ve worked on a number of Angular apps, but most of them were either set up by someone else or created using Yeoman or something similar.

Earlier today I was trying to get Karma and Jasmine working so I could write some tests for a small new application. I had spent some time googling boilerplate karma.conf.js files and trying to fill in the gaps. Finally, I stumbled across the karma init command, which walks you through generating a boilerplate karma.conf.js.

The bigger lesson

Aside from the obvious lesson of “use karma init,” I think the other takeaway here is the importance of familiarizing oneself with the tools one uses every day.

About Alexander

Alexander has been programming for a very long time. When he met Ruby, it was love at first sight.
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *