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 ' ) ;
22import TestTask from '../tasks/test' ;
33import { CliConfig } from '../models/config' ;
44import { oneLine } from 'common-tags' ;
@@ -23,7 +23,12 @@ export interface TestOptions {
2323}
2424
2525
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+
2732 availableOptions : [
2833 {
2934 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');
2020var EOL = require ( 'os' ) . EOL ;
2121var CoreObject = require ( '../ext/core-object' ) ;
2222var debug = require ( 'debug' ) ( 'ember-cli:command' ) ;
23- var Watcher = require ( '../models/watcher' ) ;
2423var SilentError = require ( 'silent-error' ) ;
2524
2625var allowedWorkOptions = {
@@ -126,13 +125,7 @@ Command.prototype.validateAndRun = function(args) {
126125 }
127126 }
128127
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 ) ;
136129} ;
137130
138131/*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22module . exports = {
33 DestroyFromBlueprint : require ( './tasks/destroy-from-blueprint' ) ,
44 GenerateFromBlueprint : require ( './tasks/generate-from-blueprint' ) ,
5- GitInit : require ( './tasks/git-init' ) ,
65 InstallBlueprint : require ( './tasks/install-blueprint' ) ,
76 NpmInstall : require ( './tasks/npm-install' ) ,
87 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