Skip to content

Commit

Permalink
fix(@angular/cli): use build defaults in test
Browse files Browse the repository at this point in the history
These defaults were added to build/serve/e2e but not to test.
  • Loading branch information
filipesilva authored and Brocco committed Jul 20, 2017
1 parent 19f04af commit 09f33f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/@angular/cli/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { CliConfig } from '../models/config';
import { oneLine } from 'common-tags';

const config = CliConfig.fromProject() || CliConfig.fromGlobal();
const pollDefault = config.config.defaults && config.config.defaults.poll;
const testConfigDefaults = config.getPaths('defaults.build', [
'progress', 'poll'
]);

export interface TestOptions {
watch?: boolean;
Expand Down Expand Up @@ -59,7 +61,7 @@ const TestCommand = Command.extend({
{
name: 'progress',
type: Boolean,
default: true,
default: testConfigDefaults['progress'],
description: 'Log progress to the console while in progress.'
},
{
Expand Down Expand Up @@ -97,7 +99,7 @@ const TestCommand = Command.extend({
{
name: 'poll',
type: Number,
default: pollDefault,
default: testConfigDefaults['poll'],
description: 'Enable and define the file watching poll time period (milliseconds).'
},
{
Expand Down

0 comments on commit 09f33f8

Please sign in to comment.