mardi 6 novembre 2018

Ember cli mirage: using fixtures in acceptance test

I am trying to use fixtures with my acceptance tests however its causing tests to fail due to duplicate data since fixtures are re-inserted in the mirage DB every test. Is there a way to get around this or remove the fixtures every test

setupApplicationTest(hooks);
setupMirage(hooks);

hooks.beforeEach(function() {
    this.server.loadFixtures();
});




Aucun commentaire:

Enregistrer un commentaire