ES6 replacement for Ember.testing

When adding ember-simple-auth to a project, I noticed that Ember.testing is being used, for instance here

I was wondering if there is an ES6 replacement, as importing Ember from 'ember' will probably cause issues with three shaking in the future?

I noticed that using Ember.testing without an import seems to work fine, however I am not quite sure if this is something that should be done at all…

3 Likes

I want to know to! And this yet to be answered! I am replying to bump this again a year later.

I do want to know this! Consider this another bump.

We have been using our own little util instead:

import config from 'my-app/config/environment';

export function isTesting() {
  return config.environment === 'test';
}

Which has been working fine for us.

1 Like