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';
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 ;
@@ -60,7 +62,7 @@ const TestCommand = Command.extend({
60
62
{
61
63
name : 'progress' ,
62
64
type : Boolean ,
63
- default : true ,
65
+ default : testConfigDefaults [ 'progress' ] ,
64
66
description : 'Log progress to the console while in progress.'
65
67
} ,
66
68
{
@@ -98,7 +100,7 @@ const TestCommand = Command.extend({
98
100
{
99
101
name : 'poll' ,
100
102
type : Number ,
101
- default : pollDefault ,
103
+ default : testConfigDefaults [ 'poll' ] ,
102
104
description : 'Enable and define the file watching poll time period (milliseconds).'
103
105
} ,
104
106
{
You can’t perform that action at this time.
0 commit comments