How to use the ember-test-helpers.setResolver function in ember-test-helpers

To help you get started, we’ve selected a few ember-test-helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emberjs / ember-qunit / tests / helpers / resolver.js View on Github external
import App from '../../app';
import { setRegistry } from '../../resolver';
import config from '../../config/environment';
import { setResolver } from 'ember-test-helpers';

export const application = App.create(config.APP);
export const resolver = application.Resolver.create({
  namespace: application,
  isResolverFromTestHelpers: true,
});

export default resolver;

setResolver(resolver);

export function setResolverRegistry(registry) {
  setRegistry(registry);
}