File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ import gulp from 'gulp';
2
2
import mocha from 'gulp-mocha' ;
3
3
import { Server } from 'karma' ;
4
4
import path from 'path' ;
5
+ import { argv } from 'yargs' ;
5
6
import { dirs } from './config' ;
6
7
7
8
gulp . task (
8
9
'test:server' ,
9
10
( ) =>
10
- gulp . src ( path . resolve ( dirs . testServer , '**/*.spec.js' ) )
11
+ gulp . src ( argv . t || path . resolve ( dirs . testServer , '**/*.spec.js' ) )
11
12
. pipe ( mocha ( {
12
13
compilers : 'js:babel-core/register' ,
13
14
require : path . resolve ( dirs . test , 'mocha.conf.js' ) ,
@@ -16,7 +17,7 @@ gulp.task(
16
17
17
18
gulp . task ( 'test:client' , ( done ) => {
18
19
new Server ( {
19
- files : [ path . resolve ( dirs . testClient , '**/*.spec.js' ) ] ,
20
+ files : [ argv . t || path . resolve ( dirs . testClient , '**/*.spec.js' ) ] ,
20
21
configFile : path . resolve ( dirs . test , 'karma.conf.js' ) ,
21
22
singleRun : true ,
22
23
} , done ) . start ( ) ;
You can’t perform that action at this time.
0 commit comments