chore: 🤖 deprecation workflow (#1462)

* chore: 🤖 rebase main

* test: 💍 rebase

* test: 💍 rebase

* test: 💍 rebase

* test: 💍 rebase
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2022-11-15 19:36:30 -08:00
1 parent 58a47c8375
commit b8cbbceff6
2 files changed
+28 -9

No files matched your search

@@ -1,14 +1,12 @@
import { registerDeprecationHandler } from '@ember/debug';
export function initialize(application) {
const config = application.resolveRegistration('config:environment');
const isTesting = config.environment === 'test';
if (isTesting) {
// Disable all deprecations for now in tests.
registerDeprecationHandler((/*message, options, next*/) => {
return;
});
}
export function initialize() {
registerDeprecationHandler((message, options, next) => {
if (options?.url) {
message += options.url;
}
next(message, options);
});
}
export default {