File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 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 {
105105 const frameworks = [ frameworkToInstall ] . concat ( this . karmaConfigAdditionalFrameworks [ frameworkToInstall ] || [ ] )
106106 . map ( fw => `'${ fw } '` )
107107 . join ( ', ' ) ;
108+ const testFiles = `'${ relativeTestsDir } /**/*.js'` ;
108109 const karmaConfTemplate = this . $resources . readText ( 'test/karma.conf.js' ) ;
109- const karmaConf = _ . template ( karmaConfTemplate ) ( { frameworks } ) ;
110+ const karmaConf = _ . template ( karmaConfTemplate ) ( { frameworks, testFiles } ) ;
110111
111112 this . $fs . writeFile ( path . join ( projectDir , 'karma.conf.js' ) , karmaConf ) ;
112113
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = function(config) {
1212
1313 // list of files / patterns to load in the browser
1414 files : [
15- 'app/**/*.js' ,
15+ $ { testFiles }
1616 ] ,
1717
1818
You can’t perform that action at this time.
0 commit comments