@@ -38,13 +38,12 @@ const paths = {
38
38
bower : `${ clientPath } /bower_components/`
39
39
} ,
40
40
server : {
41
- scripts : [ `${ serverPath } /**/* .<%= scriptExt %>` ] ,
41
+ scripts : [ `${ serverPath } /**/!(*.spec|*.integration) .<%= scriptExt %>` ] ,
42
42
json : [ `${ serverPath } /**/*.json` ] ,
43
- test : [
44
- `${ serverPath } /**/*.spec.js` ,
45
- `${ serverPath } /**/*.mock.js` ,
46
- `${ serverPath } /**/*.integration.js`
47
- ]
43
+ test : {
44
+ integration : `${ serverPath } /**/*.integration.js` ,
45
+ unit : `${ serverPath } /**/*.spec.js`
46
+ }
48
47
} ,
49
48
karma : 'karma.conf.js' ,
50
49
dist : 'dist'
@@ -318,7 +317,7 @@ gulp.task('start:server', () => {
318
317
} ) ;
319
318
320
319
gulp . task ( 'watch' , ( ) => {
321
- var testFiles = _ . union ( paths . client . test , paths . server . test ) ;
320
+ var testFiles = _ . union ( paths . client . test , paths . server . test . unit , paths . server . test . integration ) ;
322
321
323
322
plugins . livereload . listen ( ) ;
324
323
@@ -383,7 +382,7 @@ gulp.task('test:server', cb => {
383
382
} ) ;
384
383
385
384
gulp . task ( 'mocha:unit' , ( ) => {
386
- return gulp . src ( paths . server . test )
385
+ return gulp . src ( paths . server . test . unit )
387
386
. pipe ( mocha ( ) ) ;
388
387
} ) ;
389
388
0 commit comments