@@ -2,6 +2,21 @@ const TestCommand = require('../ember-cli/lib/commands/test');
22import TestTask from '../tasks/test' ;
33import { CliConfig } from '../models/config' ;
44
5+ export interface TestOptions {
6+ watch ?: boolean ;
7+ codeCoverage ?: boolean ;
8+ lint ?: boolean ;
9+ singleRun ?: boolean ;
10+ browsers ?: string ;
11+ colors ?: boolean ;
12+ log ?: string ;
13+ port ?: number ;
14+ reporters ?: string ;
15+ build ?: boolean ;
16+ sourcemap ?: boolean ;
17+ }
18+
19+
520const NgCliTestCommand = TestCommand . extend ( {
621 availableOptions : [
722 { name : 'watch' , type : Boolean , default : true , aliases : [ 'w' ] } ,
@@ -13,10 +28,11 @@ const NgCliTestCommand = TestCommand.extend({
1328 { name : 'log-level' , type : String } ,
1429 { name : 'port' , type : Number } ,
1530 { name : 'reporters' , type : String } ,
16- { name : 'build' , type : Boolean , default : true }
31+ { name : 'build' , type : Boolean , default : true } ,
32+ { name : 'sourcemap' , type : Boolean , default : true , aliases : [ 'sm' ] }
1733 ] ,
1834
19- run : function ( commandOptions : any ) {
35+ run : function ( commandOptions : TestOptions ) {
2036 this . project . ngConfig = this . project . ngConfig || CliConfig . fromProject ( ) ;
2137
2238 const testTask = new TestTask ( {
0 commit comments