title: Disable Ember Mirage when running tests in the browser
body: <p>I would like to be able to run tests against my Mirage server, and my actual server in turn.</p>
  
  <p>I've read <a href="https://www.ember-cli-mirage.com/docs/advanced/environment-options" rel="nofollow noreferrer">these docs</a> on disabling Mirage, and it works as expected for the development environment. Adding the code below disables Mirage at <a href="http://localhost:4200" rel="nofollow noreferrer">http://localhost:4200</a>.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> ENV['ember-cli-mirage'] = {
      enabled: false
    };</code></pre>
  </div>
  </div>
  </p>
  
  <p>However, this does not disable mirage when running tests in the browser at <a href="http://localhost:4200/tests" rel="nofollow noreferrer">http://localhost:4200/tests</a>.</p>
  
  <p>I have added the code above outside of any of the environment specific conditionals, so it should apply to all environments. For good measure, I have also tried adding the code above inside each of the three environment specific conditionals as well:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> ENV['ember-cli-mirage'] = {
      enabled: false
    };
  
  if (environment === 'production') {
    ENV['ember-cli-mirage'] = {
      enabled: false
    };
  }
  if (environment === 'development') {
    ENV['ember-cli-mirage'] = {
      enabled: false
    };
  }
  if (environment === 'test') {
    ENV['ember-cli-mirage'] = {
      enabled: false
    };
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="http://localhost:4200/tests" rel="nofollow noreferrer">http://localhost:4200/tests</a> still uses Mirage.</p>
  
  <p>Is there a way to disable Mirage when testing in the browser? I would like to be able to enable it easily, so uninstalling Mirage is not an option.</p>