ember-cli-blueprint-test-helpers
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -20,12 +20,13 @@ 'use strict'; | ||
@param {String} [options.cliPath='ember-cli'] path to the `ember-cli` dependency | ||
@param {Boolean} [options.disabledTasks=['bower-install', 'npm-install']] override the mocked installs | ||
@param {Boolean} [options.disabledTasks=['addon-install', 'bower-install', 'npm-install']] override the mocked installs | ||
*/ | ||
module.exports = function setupTestHooks(scope, options) { | ||
var timeout = options && options.timeout || 20000; | ||
var tmp = options && options.tmpenv || scope.tmpenv || tmpenv; | ||
var disabledTasks = options && options.disabledTasks || ['bower-install', 'npm-install']; | ||
options = options || {}; | ||
var timeout = options.timeout || 20000; | ||
var tmp = options.tmpenv || scope.tmpenv || tmpenv; | ||
var disabledTasks = options.disabledTasks || ['addon-install', 'bower-install', 'npm-install']; | ||
scope.timeout(timeout); | ||
if (options && options.cliPath) { | ||
if (options.cliPath) { | ||
requireFromCLI.setBasePath(options.cliPath); | ||
@@ -32,0 +33,0 @@ } |
@@ -19,3 +19,3 @@ 'use strict'; | ||
describe('Acceptance: ember generate ember-cli-blueprint-test-helpers', function() { | ||
describe('without mocking', function() { | ||
describe('with mocking', function() { | ||
setupTestHooks(this); | ||
@@ -57,3 +57,3 @@ | ||
describe('with mocking', function() { | ||
describe('without mocking', function() { | ||
setupTestHooks(this, { | ||
@@ -60,0 +60,0 @@ disabledTasks: [], |
{ | ||
"name": "ember-cli-blueprint-test-helpers", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"description": "Blueprint test helpers for ember-cli. Mocks ember-cli for generate and destroy commands.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -140,3 +140,3 @@ | ||
- `{String} [options.cliPath='ember-cli']` path to the `ember-cli` dependency | ||
- `{Boolean} [options.disabledTasks=['bower-install', 'npm-install']]` override the mocked installs | ||
- `{Boolean} [options.disabledTasks=['addon-install', 'bower-install', 'npm-install']]` override the mocked installs | ||
Defaults to [`lib/helpers/tmp-env.js`](lib/helpers/tmp-env.js) | ||
@@ -143,0 +143,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43081
483