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
225
225
// Migrate karma.conf.js
226
226
const oldKarmaContent = this . $fs . readText ( path . join ( migrationBackupDirPath , constants . KARMA_CONFIG_NAME ) ) ;
227
227
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;
229
229
const matches = regExp . exec ( oldKarmaContent ) ;
230
- const frameworks = ( matches && matches [ 1 ] ) || '["jasmine"]' ;
230
+ const frameworks = ( matches && matches [ 1 ] && matches [ 1 ] . trim ( ) ) || '["jasmine"]' ;
231
231
232
232
const testsDir = path . join ( projectData . appDirectoryPath , 'tests' ) ;
233
233
const relativeTestsDir = path . relative ( projectData . projectDir , testsDir ) ;
You can’t perform that action at this time.
0 commit comments