How to mock an Ember-CLI service in an acceptance test?
Short version of the solution: your registered mock service must have a different service:name than the “real” service you’re trying to mock. Acceptance test: import Ember from ’ember’; import { module, test } from ‘qunit’; import startApp from ‘container-doubling/tests/helpers/start-app’; var application; let speakerMock = Ember.Service.extend({ speak: function() { console.log(“Acceptance Mock!”); } }); module(‘Acceptance | acceptance … Read more