* v4.12.1...v5.12.0 * chore: 🤖 yarn.lock changes from ember upgrade * chore: 🤖 ember init blueprint changes * chore: 🤖 yarn.lock updates * chore: 🤖 fix build errors * chore: 🤖 yarn.lock file changes * refactor: 💡 undo style path change * chore: 🤖 fix build errors * chore: 🤖 yarn.lock file changes * test: 💍 add @ember/string back in to fix test error * chore: 🤖 remove eslint prettier plugin * chore: 🤖 remove prettier eslint plugin in api addon * docs: ✏️ add comments back in
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import {
|
|
setupApplicationTest as upstreamSetupApplicationTest,
|
|
setupRenderingTest as upstreamSetupRenderingTest,
|
|
setupTest as upstreamSetupTest,
|
|
} from 'ember-qunit';
|
|
|
|
// This file exists to provide wrappers around ember-qunit's
|
|
// test setup functions. This way, you can easily extend the setup that is
|
|
// needed per test type.
|
|
|
|
function setupApplicationTest(hooks, options) {
|
|
upstreamSetupApplicationTest(hooks, options);
|
|
|
|
// Additional setup for application tests can be done here.
|
|
//
|
|
// For example, if you need an authenticated session for each
|
|
// application test, you could do:
|
|
//
|
|
// hooks.beforeEach(async function () {
|
|
// await authenticateSession(); // ember-simple-auth
|
|
// });
|
|
//
|
|
// This is also a good place to call test setup functions coming
|
|
// from other addons:
|
|
//
|
|
// setupIntl(hooks, 'en-us'); // ember-intl
|
|
// setupMirage(hooks); // ember-cli-mirage
|
|
}
|
|
|
|
function setupRenderingTest(hooks, options) {
|
|
upstreamSetupRenderingTest(hooks, options);
|
|
|
|
// Additional setup for rendering tests can be done here.
|
|
}
|
|
|
|
function setupTest(hooks, options) {
|
|
upstreamSetupTest(hooks, options);
|
|
|
|
// Additional setup for unit tests can be done here.
|
|
}
|
|
|
|
export { setupApplicationTest, setupRenderingTest, setupTest };
|