File tree 1 file changed +5
-3
lines changed
packages/@angular/cli/commands
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';
4
4
import { oneLine } from 'common-tags' ;
5
5
6
6
const 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
+ ] ) ;
8
10
9
11
export interface TestOptions {
10
12
watch ?: boolean ;
@@ -59,7 +61,7 @@ const TestCommand = Command.extend({
59
61
{
60
62
name : 'progress' ,
61
63
type : Boolean ,
62
- default : true ,
64
+ default : testConfigDefaults [ 'progress' ] ,
63
65
description : 'Log progress to the console while in progress.'
64
66
} ,
65
67
{
@@ -97,7 +99,7 @@ const TestCommand = Command.extend({
97
99
{
98
100
name : 'poll' ,
99
101
type : Number ,
100
- default : pollDefault ,
102
+ default : testConfigDefaults [ 'poll' ] ,
101
103
description : 'Enable and define the file watching poll time period (milliseconds).'
102
104
} ,
103
105
{
You can’t perform that action at this time.
0 commit comments