mirage-server
v0.1.0
Published
A client-side server to develop, test and prototype your app.
Downloads
6
Maintainers
Readme
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 MirageServer, { Factory } from 'mirage-server';
let server = new MirageServer({
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