open-vault/ui/tests/test-helper.js

15 lines
485 B
JavaScript

import Application from 'vault/app';
import config from 'vault/config/environment';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import './helpers/flash-message';
import preloadAssets from 'ember-asset-loader/test-support/preload-assets';
import manifest from 'vault/config/asset-manifest';
preloadAssets(manifest).then(() => {
setApplication(Application.create(config.APP));
start({
setupTestIsolationValidation: true,
});
});