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

ember-mirage

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-mirage

A ember wrapper for mirageJS

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
350
decreased by-3.85%
Maintainers
1
Weekly downloads
 
Created
Source

https://github.com/ember-cli/ember-load-initializers/blob/master/addon/index.ts

Ember Mirage

This addon provides test helpers to allow you to easily setup a mirage server for your tests. It also provide the ability to have your models, serializers, factories, etc in separate files within the proper directories without having to manage the imports yourself.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-mirage

Usage

This addon provides the following capabilities for using mirageJS with ember

  • Allows for starting mirage in tests with setupMirage helper
  • Allows for starting a mirage server for use in an application
  • Allows for defining your Models, Factories, etc in separate files
  • Allows for creating Models and Serializers from your Ember Data Models and Serializers (REST)

Converting from Ember-cli-mirage

When MirageJS was extracted, ember-cli-mirage continued to re-export many objects that are now part of mirageJS. While this addon does require mirageJS, it does not re-export any of those objects. You should update all the current imports to import the objects from mirageJS instead of ember-cli-mirage. You can do that now while continuing to use ember-cli-mirage. Once the imports have been completed you will find there is only a couple steps to convert to using this addon.

Change the imports for all the following Objects

  • Model, belongTo, hasMany
  • Factories, Traits
  • JSONAPISerializer, ActiveModelSerializer, RestSerializer

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 22 Jul 2021

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