mardi 13 juin 2017

Mirage for Testing and Firebase for devlopment - Emberjs

In my application, I use firebase to store and retrieve data.

But for testing purpose i dont want data come from server, i need to mock the data using mirage and test that mock data.

In my adapter/application.js, i use firebase adapater

import Ember from 'ember';
import FirebaseAdapter from 'emberfire/adapters/firebase';
const { inject } = Ember;
export default FirebaseAdapter.extend({
    firebase: inject.service(),
});

but in case of testing i want to use mirage, so my question where i want to change the adapter to mirage??? Thanks in advance




Aucun commentaire:

Enregistrer un commentaire