UNPKG

angular-cli

Version:
35 lines 1.56 kB
"use strict"; var EmberTestCommand = require('../ember-cli/lib/commands/test'); var test_1 = require('../tasks/test'); var config_1 = require('../models/config'); var TestCommand = EmberTestCommand.extend({ availableOptions: [ { name: 'watch', type: Boolean, default: true, aliases: ['w'] }, { name: 'code-coverage', type: Boolean, default: false, aliases: ['cc'] }, { name: 'single-run', type: Boolean, default: false, aliases: ['sr'] }, { name: 'progress', type: Boolean, default: true }, { name: 'browsers', type: String }, { name: 'colors', type: Boolean }, { name: 'log-level', type: String }, { name: 'port', type: Number }, { name: 'reporters', type: String }, { name: 'build', type: Boolean, default: true }, { name: 'sourcemap', type: Boolean, default: true, aliases: ['sm'] } ], run: function (commandOptions) { this.project.ngConfig = this.project.ngConfig || config_1.CliConfig.fromProject(); var testTask = new test_1.default({ ui: this.ui, project: this.project }); if (!commandOptions.watch) { // if not watching ensure karma is doing a single run commandOptions.singleRun = true; } return testTask.run(commandOptions); } }); TestCommand.overrideCore = true; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = TestCommand; //# sourceMappingURL=/Users/hans/Sources/angular-cli/packages/angular-cli/commands/test.js.map