File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,9 +225,9 @@ export class MigrateController extends UpdateControllerBase implements IMigrateC
225225 // Migrate karma.conf.js
226226 const oldKarmaContent = this . $fs . readText ( path . join ( migrationBackupDirPath , constants . KARMA_CONFIG_NAME ) ) ;
227227
228- const regExp = / f r a m e w o r k s : \s + \[ ( \S + ) \] \, / g;
228+ const regExp = / f r a m e w o r k s : \s + \[ ( [ \S \s ] * ? ) \] / g;
229229 const matches = regExp . exec ( oldKarmaContent ) ;
230- const frameworks = ( matches && matches [ 1 ] ) || '["jasmine"]' ;
230+ const frameworks = ( matches && matches [ 1 ] && matches [ 1 ] . trim ( ) ) || '["jasmine"]' ;
231231
232232 const testsDir = path . join ( projectData . appDirectoryPath , 'tests' ) ;
233233 const relativeTestsDir = path . relative ( projectData . projectDir , testsDir ) ;
You can’t perform that action at this time.
0 commit comments