Skip to content

Commit 09f33f8

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 19f04af commit 09f33f8

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

+5-3
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;
@@ -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
{

0 commit comments

Comments
 (0)