Socket
Socket
Sign inDemoInstall

ember-cli-addon-tests

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-addon-tests - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

4

lib/commands/start-server.js

@@ -7,3 +7,3 @@ "use strict";

var runEmber = require('../utilities/run-ember');
var _ = require('lodash');
var defaults = require('lodash/defaults');
var temp = require('../utilities/temp');

@@ -15,3 +15,3 @@

_.defaults(options, {
defaults(options, {
port: '49741',

@@ -18,0 +18,0 @@ command: 'server'

@@ -7,2 +7,3 @@ var fs = require('fs-extra');

var copyFixtureFiles = require('../utilities/copy-fixture-files');
var RSVP = require('rsvp');

@@ -28,3 +29,5 @@ function AddonTestApp() {

app.path = appPath;
return copyFixtureFiles(appName, appPath, options.fixturesPath);
return options.noFixtures ?
RSVP.resolve() :
copyFixtureFiles(appName, appPath, options.fixturesPath);
})

@@ -31,0 +34,0 @@ .then(function() {

@@ -7,3 +7,3 @@ var path = require('path');

function copyFixtureFiles(appName, destDir, fixturesPath) {
function findFixturesPath(fixturesPath) {
fixturesPath = findup(fixturesPath || 'test/fixtures');

@@ -19,2 +19,10 @@

return fixturesPath;
}
function copyFixtureFiles(appName, destDir, fixturesPath) {
if (!fixturesPath || !path.isAbsolute(fixturesPath)) {
fixturesPath = findFixturesPath(fixturesPath);
}
var sourceDir = path.join(fixturesPath, appName);

@@ -21,0 +29,0 @@

@@ -8,3 +8,3 @@ 'use strict';

var spawn = childProcess.spawn;
var defaults = require('lodash/object/defaults');
var defaults = require('lodash/defaults');
var killCliProcess = require('./kill-cli-process');

@@ -28,3 +28,3 @@ var debug = require('./debug');

if (isWindows && command === 'npm') {
if (isWindows && (command === 'npm' || command === 'bower')) {
return exec(command + ' ' + args.join(' '));

@@ -31,0 +31,0 @@ }

{
"name": "ember-cli-addon-tests",
"version": "0.6.2",
"version": "0.6.3",
"description": "A set of integration test helpers for Ember CLI addons",

@@ -27,6 +27,6 @@ "keywords": [

"exists-sync": "0.0.4",
"findup-sync": "^0.3.0",
"fs-extra": "^0.24.0",
"fs-promise": "^0.3.1",
"lodash": "^3.0.0",
"findup-sync": "^0.4.3",
"fs-extra": "^2.0.0",
"fs-promise": "^2.0.0",
"lodash": "^4.0.0",
"mkdirp": "^0.5.1",

@@ -33,0 +33,0 @@ "rsvp": "^3.1.0",

## Ember CLI Addon Tests
[![Greenkeeper badge](https://badges.greenkeeper.io/tomdale/ember-cli-addon-tests.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/ember-cli-addon-tests.svg)](https://badge.fury.io/js/ember-cli-addon-tests)
[![Build Status](https://travis-ci.org/tomdale/ember-cli-addon-tests.svg?branch=master)](https://travis-ci.org/tomdale/ember-cli-addon-tests)
[![Build Status - Travis](https://travis-ci.org/tomdale/ember-cli-addon-tests.svg?branch=master)](https://travis-ci.org/tomdale/ember-cli-addon-tests)
[![Build Status - AppVeyor](https://ci.appveyor.com/api/projects/status/ifp893hf5s6j5uuy/branch/master?svg=true)](https://ci.appveyor.com/project/tomdale/ember-cli-addon-tests/branch/master)

@@ -111,4 +113,4 @@ Test helpers for testing Ember CLI addons inside the context of a real

The following options exist:
The following options exist:
| option | description | defaults to |

@@ -119,2 +121,3 @@ |------------------|-----------------------------------------------------------------------------------------|---------------------|

| fixturesPath | The path to look for your fixture files (see below) | test/fixtures |
| noFixtures | Disables the use of fixture files | false |

@@ -133,2 +136,5 @@

If you do not need fixture files in your test, you can disable them by
specifying the `noFixtures` option.
### Editing App's `package.json`

@@ -135,0 +141,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc