You may have noticed, but our Gulp file fails to run. Basically, everything is well up to the tests of the minified JavaScript files. Luckily, we can fix this really easy! In the karma.min.conf.js file, simply make sure you browserify everything in the spec folder:
[...]
preprocessors: {
'../prod/scripts/*.js': ['browserify'],
'spec/*.js': ['browserify']
},
[...]
That should fix your Gulp run. Everything should work now, testing, linting, minifying, and so on. Another thing though, we have added the Node.js tests, which are not yet included in our gulpfile. We can simply create an extra task and run jasmine-node tests. Of course, we need an extra Karma plugin, the karma-jasmine-node plugin (https://www.npmjs.com/package/gulp-jasmine-node):
npm install karma-jasmine-node --save-dev
We can now add it to our gulpfile. It is...