# Help with ember-cli-mirage not loading routes

**URL:** <https://discuss.emberjs.com/t/help-with-ember-cli-mirage-not-loading-routes/20536>\
**Category:** Testing\
**Created:** [June 14, 2024, 8:33pm UTC](https://discuss.emberjs.com/t/help-with-ember-cli-mirage-not-loading-routes/20536 "2024-06-14T20:33:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhelwig](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mhelwig](https://discuss.emberjs.com/u/mhelwig)\
**Post date:** [June 14, 2024, 8:33pm UTC](https://discuss.emberjs.com/t/help-with-ember-cli-mirage-not-loading-routes/20536/1 "2024-06-14T20:33:08Z")

</div>

After upgrading my application, ember-cli-mirage doesn’t seem to use mirage/config as a part of the setup. As a result, routes are not defined as a part of the server.\_config & none of the existing Acceptance tests are working. I’ve placed a debugger in the mirage/config that isn’t hit when _setupMirage(hooks)_ is run in the test setup. This issue seemed to be introduced after adding webpack & upgrading ember-auto-import.  
This is my redacted mirage/config:

```auto
import { createServer } from "miragejs";
import { discoverEmberDataModels } from "ember-cli-mirage";

export default function(config) {

  const finalConfig = {
    ...config,
    models: { ...discoverEmberDataModels(),
      ...config.models },
    routes() {...}

  };
  debugger; // This debugger is never hit
  return createServer(finalConfig);
}

```

My application versions are as follows:

- ember-auto-import: 2.6.1 (I originally had this on version 2.7.3, which further broke the tests on load; couldn’t find the internally imported _miragejs_)
- ember-cli-mirage: 2.4.0
- ember-source: 4.0.0
- ember-qunit: 6.2.0

Does anyone have any insight on what to do to get the config included in setupMirage(hooks) and have my routes included?
