ember-cli-addon-tests
Advanced tools
Comparing version 0.4.1 to 0.4.2
var path = require('path'); | ||
var existsSync = require('exists-sync'); | ||
var debug = require('debug')('fastboot-test'); | ||
var debug = require('./debug'); | ||
var renameSync = require('fs-extra').renameSync; | ||
@@ -5,0 +5,0 @@ |
@@ -125,5 +125,2 @@ "use strict"; | ||
// at this point we have all deps available, so we can run ember-cli | ||
promise = promise.then(runAddonGenerator); | ||
if (!hasNodeModules) { | ||
@@ -137,3 +134,5 @@ promise = promise.then(movePristineNodeModules(appName)); | ||
return promise.then(linkDependencies(appName)); | ||
return promise.then(linkDependencies(appName)) | ||
// at this point we have all deps available, so we can run ember-cli | ||
.then(runAddonGenerator); | ||
} | ||
@@ -303,3 +302,7 @@ | ||
debug('found addon package.json; path=%s', lastPath); | ||
if (lastPath) { | ||
debug('found addon package.json; path=%s', lastPath); | ||
} else { | ||
debug('couldn\'t find addon package.json'); | ||
} | ||
@@ -340,2 +343,1 @@ return lastPath; | ||
} | ||
var symlinkOrCopySync = require('symlink-or-copy').sync; | ||
var debug = require('debug')('fastboot-test'); | ||
var debug = require('./debug'); | ||
var path = require('path'); | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "ember-cli-addon-tests", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "A set of integration test helpers for Ember CLI addons", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "mocha test/acceptance" | ||
}, | ||
@@ -23,3 +23,6 @@ "repository": { | ||
"devDependencies": { | ||
"ember-cli": "^1.13.0" | ||
"chai": "^3.5.0", | ||
"ember-cli": "^1.13.0", | ||
"mocha": "^3.1.2", | ||
"request": "^2.75.0" | ||
}, | ||
@@ -26,0 +29,0 @@ "dependencies": { |
@@ -125,3 +125,3 @@ ## Ember CLI Addon Tests | ||
For example, if you call `app.create('my-app')`, the test helper will | ||
look for a file called `tests/fixtures/my-app` in your addon's directory | ||
look for a file called `test/fixtures/my-app` in your addon's directory | ||
and will copy them to the test app, overwriting any files that exist. | ||
@@ -168,3 +168,3 @@ | ||
``` | ||
```js | ||
// equivalent to `ember server --serve-assets` | ||
@@ -171,0 +171,0 @@ app.startServer({ |
@@ -22,4 +22,5 @@ "use strict"; | ||
.then(function() { | ||
moveDirectory(path.join(tmpDir, name, 'node_modules'), path.join(root, 'tmp', 'precooked_node_modules')); | ||
symlinkDirectory(root, path.join(root, 'tmp', 'precooked_node_modules', 'ember-cli-fastboot')); | ||
var precooked = path.join(root, 'tmp', 'precooked_node_modules'); | ||
moveDirectory(path.join(tmpDir, name, 'node_modules'), precooked); | ||
symlinkDirectory(root, path.join(precooked, 'ember-cli-fastboot')); | ||
}) | ||
@@ -26,0 +27,0 @@ .catch(function(e) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
29
680
60921
4