There's a karma plugin for [sinon](https://www.npmjs.org/package/karma-sinon) that handles this. You include the plugin and say you're using the `sinon` framework. Supposedly better than just including the file here.