Grunt + Karma test runner fails with “ReferenceError: module is not defined”
问题 When running our Karma test through Grunt, the execution fails with the following error: [2013-12-30 10:14:22.690] [ERROR] config - Invalid config file! [ReferenceError: module is not defined] The Karma configuration in Gruntfile.js looks sane, I've copied it from another project, where it works just fine. Same for the karma.conf.js file, there's no difference to one of the other projects, where it works fine. I've had a look at this question, but it didn't help with fixing the issue: Testing