Mirage starts up a global server when your app initializers run. That means that each time you destroy your app, you need to call
server.shutdown()
. However, if you are on Ember CLI 1.13.8 or below, you won't have a destroy-app.js
helper so we can automatically
do this for you.
There are several things you can do to fix this. You only need to do one of the options below.
This is the easiest way to fix this problem. Upgrade to Ember CLI 1.13.9 or higher (follow the upgrade steps with ember init
) and re-run ember g ember-cli-mirage
. That's it!