karma.conf.js
// https://github.com/Nikku/karma-browserify
module.exports = function (config) {
config.set({
browsers: ['PhantomJS'],
frameworks: ['browserify', 'jasmine'],
files: ['test/frontend/**/*.js'],
reporters: ['spec'],
preprocessors: {
'test/frontend/**/*.js': ['browserify']
},
browserify: {
debug: true,
// needed to enable mocks
plugin: [require('proxyquireify').plugin]
},
// if you want to continuously re-run tests on file-save,
// replace the following line with `autoWatch: true`
singleRun: true
})
}