@bigtest/mirage
Version:
A client-side server to develop, test and prototype your app.
39 lines (27 loc) • 732 B
Markdown
A client-side server to develop, test and prototype your app.
This project is a plain vanilla javascript extraction of the
[][1] 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.
``` javascript
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()
```
Test suite is running in QUnit and Karma.
```
$ yarn
$ yarn start // karma server
$ yarn test // single run
```
[]: http://www.ember-cli-mirage.com/