Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

bigtestjs/mirage

Repository files navigation

⚠️ DEPRECATED ⚠️

In order to make BigTest development faster and friction free, we've consolidated all of our individual projects into a single repository on the Frontside Organization. We'd love to see you there!

note: the last release from this repository was 0.0.1

Mirage Server

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

Note: This repository has been archived in favor of https://github.com/miragejs/server Documentation and tutorials at https://miragejs.com/docs

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