Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-fetch-pretender

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-fetch-pretender

Include fetch-pretender (fetch-based Pretender fork) into an ember-cli application.

  • 0.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ember-cli-pretender

Simple wrapper for pretender.js, this project removes the need for the developer to know which files need to be imported.

Usage

ember install ember-cli-pretender

You can then import Pretender in your tests:

import Pretender from 'pretender';

see: pretenderjs/pretender for pretender docs

Configuration

By default pretender.enabled will be set to app.tests. This means that pretender will only be available as an import when your app includes your test suite.

If you'd like to include Pretender into production builds as well, you can set pretender.enabled to true in your ember-cli-build.js or Brocfile.js:

var app = new EmberApp({
  pretender: {
    enabled: true
  }
});

Nested Addon Usage Caveat

To publish an addon that exports functionality driven by ember-cli-pretender, note that ember-cli-pretender must be listed in the dependencies for NPM and not the devDependencies.

When consuming an addon that consumes ember-cli-pretender, running the initializing generator by hand is required.

ember generate ../node_modules/the-addon/node_modules/ember-cli-pretender/blueprints/ember-cli-pretender

Keywords

FAQs

Package last updated on 26 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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