Commit 9da5495 1 parent 80207ba commit 9da5495 Copy full SHA for 9da5495
File tree 2 files changed +4
-6
lines changed
packages/@angular/cli/commands
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ You can run tests with coverage via `--code-coverage`. The coverage report will
119
119
<details >
120
120
<summary >single-run</summary >
121
121
<p >
122
- <code>--single-run</code> (aliases: <code>-sr</code>) <em>default value: false</em>
122
+ <code>--single-run</code> (aliases: <code>-sr</code>)
123
123
</p >
124
124
<p >
125
125
Run tests a single time.
Original file line number Diff line number Diff line change 1
1
const Command = require ( '../ember-cli/lib/models/command' ) ;
2
2
import TestTask from '../tasks/test' ;
3
- import { CliConfig } from '../models/config' ;
3
+ import { CliConfig } from '../models/config' ;
4
4
import { oneLine } from 'common-tags' ;
5
5
6
6
const config = CliConfig . fromProject ( ) || CliConfig . fromGlobal ( ) ;
@@ -33,7 +33,6 @@ const TestCommand = Command.extend({
33
33
{
34
34
name : 'watch' ,
35
35
type : Boolean ,
36
- default : true ,
37
36
aliases : [ 'w' ] ,
38
37
description : 'Run build when files change.'
39
38
} ,
@@ -54,7 +53,6 @@ const TestCommand = Command.extend({
54
53
{
55
54
name : 'single-run' ,
56
55
type : Boolean ,
57
- default : false ,
58
56
aliases : [ 'sr' ] ,
59
57
description : 'Run tests a single time.'
60
58
} ,
@@ -110,13 +108,13 @@ const TestCommand = Command.extend({
110
108
}
111
109
] ,
112
110
113
- run : function ( commandOptions : TestOptions ) {
111
+ run : function ( commandOptions : TestOptions ) {
114
112
const testTask = new TestTask ( {
115
113
ui : this . ui ,
116
114
project : this . project
117
115
} ) ;
118
116
119
- if ( ! commandOptions . watch ) {
117
+ if ( commandOptions . watch !== undefined && ! commandOptions . watch ) {
120
118
// if not watching ensure karma is doing a single run
121
119
commandOptions . singleRun = true ;
122
120
}
You can’t perform that action at this time.
0 commit comments