 
 gulp.task 'test-dev', ['build-dev', 'build-test-dev'], ->
   gulp.src './.tmp/*'
-    .pipe mocha().on 'error', onError
+    .pipe ignoreError mocha()
 
 gulp.task 'watch', ['build-dev'], ->
   gulp.watch ['./src/*', './test/*'], ['test-dev']

gulp.task 'build-dev', ->
  gulp.src './src/*'
    .pipe sourcemaps.init()
    .pipe babel(modules: 'umd').on 'error', onError
    .pipe sourcemaps.write()
    .pipe gulp.dest './dist/'


mocha = require 'gulp-mocha'
sourcemaps = require 'gulp-sourcemaps'

ignoreError = (stream) ->
  stream.on 'error', (e) ->
    gutil.log e
    @emit 'end'

gulp.task 'build', ->
  gulp.src './src/*'
