mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-16 20:53:18 +00:00
25 lines
790 B
JavaScript
25 lines
790 B
JavaScript
import Application from '../app';
|
|
import config from '../config/environment';
|
|
import { setApplication } from '@ember/test-helpers';
|
|
import { start } from 'ember-qunit';
|
|
import { registerDeprecationHandler } from '@ember/debug';
|
|
|
|
let hasShownDefinePropDeprecation = false;
|
|
|
|
// Suggestion to keep this here until we are ready to handle the deprecation to use definePRoperty for
|
|
// computed properties. Otherwise, tests and build logs becoming overwhelming to look at
|
|
registerDeprecationHandler(function(message, { id }, next) {
|
|
if (message.includes('defineProperty')) {
|
|
if (!hasShownDefinePropDeprecation) {
|
|
next(...arguments);
|
|
hasShownDefinePropDeprecation = true;
|
|
}
|
|
} else {
|
|
next(...arguments);
|
|
}
|
|
});
|
|
|
|
setApplication(Application.create(config.APP));
|
|
|
|
start();
|