npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

@bigtest/mirage

0.0.1 • Public • Published

Mirage Server

A client-side server to develop, test and prototype your app.

This project is a plain vanilla javascript extraction of the ember-cli-mirage project. It can be used inside of any framework, including React. The goal is for it to be eventually used upstream by Ember mirage proper.

Usage

import Mirage, { Factory } from '@bigtest/mirage';
 
let server = new Mirage({
  environment: 'test',
  factories: {
    address: Factory
  }
});
 
// do some stuff with the server.
 
// stop intercepting requests
server.shutdown()

Development

Test suite is running in QUnit and Karma.

$ yarn
$ yarn start // karma server
$ yarn test // single run

install

npm i @bigtest/mirage

Downloadsweekly downloads

1,747

version

0.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability