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 19, 2017
1 parent 455d56e commit 5e8aadc
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 @@ -60,7 +62,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 @@ -98,7 +100,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 5e8aadc

Please sign in to comment.