While Karma Runner Project should have this one but it currently does not for some reason, so I made this for temporal use.
Install the module from npm:
$ npm install https://github.com/pokehanai/karma-es5-shim/archive/v2.1.0.tar.gz
Add es5-shim
to the frameworks
key after requirejs
in your Karma configuration:
module.exports = function(karma) {
karma.set({
// frameworks to use
frameworks: ['requirejs', 'es5-shim']
// ...
});
};