Skip to content

Commit 5e8aadc

Browse files
filipesilvaBrocco
authored andcommitted
fix(@angular/cli): use build defaults in test
These defaults were added to build/serve/e2e but not to test.
1 parent 455d56e commit 5e8aadc

File tree

1 file changed

+5
-3
lines changed
  • packages/@angular/cli/commands

1 file changed

+5
-3
lines changed

packages/@angular/cli/commands/test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { CliConfig } from '../models/config';
44
import { oneLine } from 'common-tags';
55

66
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+
]);
810

911
export interface TestOptions {
1012
watch?: boolean;
@@ -60,7 +62,7 @@ const TestCommand = Command.extend({
6062
{
6163
name: 'progress',
6264
type: Boolean,
63-
default: true,
65+
default: testConfigDefaults['progress'],
6466
description: 'Log progress to the console while in progress.'
6567
},
6668
{
@@ -98,7 +100,7 @@ const TestCommand = Command.extend({
98100
{
99101
name: 'poll',
100102
type: Number,
101-
default: pollDefault,
103+
default: testConfigDefaults['poll'],
102104
description: 'Enable and define the file watching poll time period (milliseconds).'
103105
},
104106
{

0 commit comments

Comments
 (0)