module.exports = function (config) {
  'use strict'

  config.set({
    frameworks: ['mocha', 'chai', 'sinon'],
    files: [
      {pattern: 'bower_components/jquery/dist/jquery.js', instrument: false},
      {pattern: 'bower_components/toastr/toastr.js', instrument: false},
      {pattern: 'bower_components/angular/angular.js', instrument: false},
      {pattern: 'node_modules/angular-mocks/angular-mocks.js', instrument: false},
      'src/app/**/*.js',
      'test/stubs.js',
      'test/**/*.spec.js'
    ],

    singleRun: true,
    browsers: ['PhantomJS']
  })
}

@@ -509,16 +509,48 @@
     %5D,%0A%0A
+    autoWatchBatchDelay: 10000,%0A
     sing

Increase the delay time to avoid failing tests due to removed javascript files when starting the build process.