Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @bigtest/mirage with all npm packages installed. Try it out:

var mirage = require("@bigtest/mirage")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@bigtest/mirage v0.0.1

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

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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free