How to use the ember-qunit.setupApplicationTest function in ember-qunit

To help you get started, we’ve selected a few ember-qunit 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 CenterForOpenScience / ember-osf-web / tests / helpers / osf-qunit.ts View on Github external
export function setupApplicationTest(hooks: NestedHooks, options?: SetupTestOptions) {
    emberQunitSetupApplicationTest(hooks, options);
    setupMirage(hooks);
    injectCustomAssertions(hooks);
}
github CenterForOpenScience / ember-osf-web / tests / helpers / index.ts View on Github external
export function setupOSFApplicationTest(hooks: any) {
    setupApplicationTest(hooks);
    hooks.beforeEach(async () => {
        faker.seed(17);
    });

    hooks.afterEach(async (assert: any) => {
        assert.dom('img[alt*="Missing translation"]').doesNotExist();
    });
}
github ember-graphql / ember-apollo-client / tests / helpers / setup.js View on Github external
export function setupApplicationTest(hooks) {
  defaultSetup(hooks);
  setupPretender(hooks);
}
github san650 / ember-cli-page-object / tests / helpers / properties.js View on Github external
module(`Application mode | Property | ${name}`, function(hooks) {
      setupApplicationTest(hooks);

      let adapter = new ApplicationAdapter(hooks);
      hooks.beforeEach(function() {
        this.adapter = adapter;
      });
      cb(test, 'application');
    });