vault/ui/tests/test-helper.js
claire bontempo b58084291e
install ember-sinon-qunit (#26807)
* install ember-sinon-qunit

* replace stubbed timestamps part 1

* replace clients/ timestamp stubs

* actually stub correctly

* oops got a little excited, these dont need replacing

* and revert client ones as well

* oh my gosh claire stop rushing

* there we go

* move timestamp stub to beforeEach

* more moves to beforeEach

* final CE test moves to beforeEach hook!

* use .replace and .fake instead of callsFake

* license-banner test

* remove remaining callsFake for consistency

* use the timestamp instead of separate date
2024-05-06 14:11:00 +00:00

35 lines
974 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Application from 'vault/app';
import config from 'vault/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { setup } from 'qunit-dom';
import start from 'ember-exam/test-support/start';
import './helpers/flash-message';
import preloadAssets from 'ember-asset-loader/test-support/preload-assets';
import { setupGlobalA11yHooks, setRunOptions } from 'ember-a11y-testing/test-support';
import manifest from 'vault/config/asset-manifest';
import setupSinon from 'ember-sinon-qunit';
preloadAssets(manifest).then(() => {
setup(QUnit.assert);
setApplication(Application.create(config.APP));
setupGlobalA11yHooks(() => true, {
helpers: ['render'],
});
setRunOptions({
runOnly: {
type: 'tag',
values: ['wcag2a'],
},
});
setupSinon();
start({
setupTestIsolationValidation: true,
});
});