File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/@angular/cli/commands Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import { CliConfig } from '../models/config';
44import { oneLine } from 'common-tags' ;
55
66const config = CliConfig . fromProject ( ) || CliConfig . fromGlobal ( ) ;
7- const pollDefault = config . config . defaults && config . config . defaults . poll ;
7+ const testConfigDefaults = config . getPaths ( 'defaults.build' , [
8+ 'progress' , 'poll'
9+ ] ) ;
810
911export interface TestOptions {
1012 watch ?: boolean ;
@@ -59,7 +61,7 @@ const TestCommand = Command.extend({
5961 {
6062 name : 'progress' ,
6163 type : Boolean ,
62- default : true ,
64+ default : testConfigDefaults [ 'progress' ] ,
6365 description : 'Log progress to the console while in progress.'
6466 } ,
6567 {
@@ -97,7 +99,7 @@ const TestCommand = Command.extend({
9799 {
98100 name : 'poll' ,
99101 type : Number ,
100- default : pollDefault ,
102+ default : testConfigDefaults [ 'poll' ] ,
101103 description : 'Enable and define the file watching poll time period (milliseconds).'
102104 } ,
103105 {
You can’t perform that action at this time.
0 commit comments