velocity-cli
Advanced tools
var _ = require('lodash'); | ||
var run = require('lib/run'); | ||
var run = require('./lib/run'); | ||
@@ -4,0 +4,0 @@ run({ |
@@ -14,4 +14,2 @@ 'use strict'; | ||
meteorArguments = replaceCommand(meteorArguments, 'test-package', 'test-packages'); | ||
if (isCommand(meteorArguments, 'test-app')) { | ||
@@ -25,3 +23,5 @@ meteorArguments = replaceCommand(meteorArguments, 'test-app', 'run'); | ||
}); | ||
} else if (isCommand(meteorArguments, 'test-packages')) { | ||
} else if (isCommand(meteorArguments, 'test-package')) { | ||
meteorArguments = replaceCommand(meteorArguments, 'test-package', 'test-packages'); | ||
if (!hasArgument(meteorArguments, '--release')) { | ||
@@ -44,4 +44,5 @@ meteorArguments.push('--release', 'velocity:METEOR@1.1.0.2_3'); | ||
console.log('Supported commands:'); | ||
console.log(' * velocity test-app'); | ||
console.log(' * velocity test-package my-package'); | ||
} | ||
} |
{ | ||
"name": "velocity-cli", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "CLI tool for using Meteor Velocity to test your Meteor apps.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,3 +19,3 @@ describe('index', function () { | ||
it('adds the latest Velocity Meteor release as argument', function () { | ||
var args = ['test-packages']; | ||
var args = ['test-package']; | ||
var env = {}; | ||
@@ -37,3 +37,3 @@ | ||
it('adds the velocity:html-reporter as driver-package', function () { | ||
var args = ['test-packages']; | ||
var args = ['test-package']; | ||
var env = {}; | ||
@@ -53,6 +53,6 @@ | ||
describe('test-packages command', function () { | ||
describe('test-package command', function () { | ||
describe('when --ci is passed as argument', function () { | ||
it('it calls meteor with --velocity (CI mode)', function () { | ||
var args = ['test-packages', 'foo', '--ci']; | ||
var args = ['test-package', 'foo', '--ci']; | ||
var env = {}; | ||
@@ -59,0 +59,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13199
0.31%315
0.32%1
-50%