@@ -55,15 +55,15 @@ gulp.task('buildJS', ['lintJS'], function () {
55
55
56
56
gulp . task ( 'testServerJS' , function ( ) {
57
57
require ( 'babel-register' ) ;
58
- //testing environment variable
58
+ //testing environment variable
59
59
process . env . NODE_ENV = 'testing' ;
60
60
return gulp . src ( './tests/server/**/*.js' , {
61
61
read : false
62
62
} ) . pipe ( mocha ( { reporter : 'spec' } ) ) ;
63
63
} ) ;
64
64
65
65
gulp . task ( 'testServerJSWithCoverage' , function ( done ) {
66
- //testing environment variable
66
+ //testing environment variable
67
67
process . env . NODE_ENV = 'testing' ;
68
68
gulp . src ( './server/**/*.js' )
69
69
. pipe ( istanbul ( {
@@ -82,7 +82,7 @@ gulp.task('testServerJSWithCoverage', function (done) {
82
82
} ) ;
83
83
84
84
gulp . task ( 'testBrowserJS' , function ( done ) {
85
- //testing environment variable
85
+ //testing environment variable
86
86
process . env . NODE_ENV = 'testing' ;
87
87
karma . start ( {
88
88
configFile : __dirname + '/tests/browser/karma.conf.js' ,
@@ -161,7 +161,7 @@ gulp.task('default', function () {
161
161
gulp . watch ( [ 'browser/**/*.html' , 'server/app/views/*.html' ] , [ 'reload' ] ) ;
162
162
163
163
// Run server tests when a server file or server test file changes.
164
- gulp . watch ( [ 'tests/server/**/*.js' ] , [ 'testServerJS' ] ) ;
164
+ gulp . watch ( [ 'tests/server/**/*.js' , 'server/app/**/*.js' ] , [ 'testServerJS' ] ) ;
165
165
166
166
// Run browser testing when a browser test file changes.
167
167
gulp . watch ( 'tests/browser/**/*' , [ 'testBrowserJS' ] ) ;
0 commit comments