File tree Expand file tree Collapse file tree 9 files changed +8
-418
lines changed Expand file tree Collapse file tree 9 files changed +8
-418
lines changed Original file line number Diff line number Diff line change 1
- const EmberTestCommand = require ( '../ember-cli/lib/commands/test ' ) ;
1
+ const Command = require ( '../ember-cli/lib/models/command ' ) ;
2
2
import TestTask from '../tasks/test' ;
3
3
import { CliConfig } from '../models/config' ;
4
4
import { oneLine } from 'common-tags' ;
@@ -23,7 +23,12 @@ export interface TestOptions {
23
23
}
24
24
25
25
26
- const TestCommand = EmberTestCommand . extend ( {
26
+ const TestCommand = Command . extend ( {
27
+ name : 'test' ,
28
+ aliases : [ 't' ] ,
29
+ description : 'Run unit tests in existing project.' ,
30
+ works : 'insideProject' ,
31
+
27
32
availableOptions : [
28
33
{
29
34
name : 'watch' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ var keys = require('lodash/keys');
20
20
var EOL = require ( 'os' ) . EOL ;
21
21
var CoreObject = require ( '../ext/core-object' ) ;
22
22
var debug = require ( 'debug' ) ( 'ember-cli:command' ) ;
23
- var Watcher = require ( '../models/watcher' ) ;
24
23
var SilentError = require ( 'silent-error' ) ;
25
24
26
25
var allowedWorkOptions = {
@@ -126,13 +125,7 @@ Command.prototype.validateAndRun = function(args) {
126
125
}
127
126
}
128
127
129
- return Watcher . detectWatcher ( this . ui , commandOptions . options ) . then ( function ( options ) {
130
- if ( options . _watchmanInfo ) {
131
- this . project . _watchmanInfo = options . _watchmanInfo ;
132
- }
133
-
134
- return this . run ( options , commandOptions . args ) ;
135
- } . bind ( this ) ) ;
128
+ return this . run ( commandOptions . options , commandOptions . args ) ;
136
129
} ;
137
130
138
131
/*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
module . exports = {
3
3
DestroyFromBlueprint : require ( './tasks/destroy-from-blueprint' ) ,
4
4
GenerateFromBlueprint : require ( './tasks/generate-from-blueprint' ) ,
5
- GitInit : require ( './tasks/git-init' ) ,
6
5
InstallBlueprint : require ( './tasks/install-blueprint' ) ,
7
6
NpmInstall : require ( './tasks/npm-install' ) ,
8
7
NpmTask : require ( './tasks/npm-task' ) ,
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments