File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,9 @@ class TestInitCommand implements ICommand {
105
105
const frameworks = [ frameworkToInstall ] . concat ( this . karmaConfigAdditionalFrameworks [ frameworkToInstall ] || [ ] )
106
106
. map ( fw => `'${ fw } '` )
107
107
. join ( ', ' ) ;
108
+ const testFiles = `'${ relativeTestsDir } /**/*.js'` ;
108
109
const karmaConfTemplate = this . $resources . readText ( 'test/karma.conf.js' ) ;
109
- const karmaConf = _ . template ( karmaConfTemplate ) ( { frameworks } ) ;
110
+ const karmaConf = _ . template ( karmaConfTemplate ) ( { frameworks, testFiles } ) ;
110
111
111
112
this . $fs . writeFile ( path . join ( projectDir , 'karma.conf.js' ) , karmaConf ) ;
112
113
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = function(config) {
12
12
13
13
// list of files / patterns to load in the browser
14
14
files : [
15
- 'app/**/*.js' ,
15
+ $ { testFiles }
16
16
] ,
17
17
18
18
You can’t perform that action at this time.
0 commit comments