chore: 🤖 silence deprecate_early_static warnings (#1845)

* chore: 🤖 silence deprecate_early_static warnings
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-08-16 10:38:04 -07:00
1 parent 4a7dafc7d2
commit 33ba168655
1 file changed
+6
@@ -7,6 +7,12 @@ import { registerDeprecationHandler } from '@ember/debug';
export function initialize() {
registerDeprecationHandler((message, options, next) => {
// TODO: fix `deprecate-early-static` warning before ember 5 upgrade
//silence deprecate-early-static warnings till we find a way to
//fix ember-cli-mirage discoverEmberDataModels
if (options?.id === 'ember-data:deprecate-early-static') {
return;
}
if (options?.url) {
message += options.url;
}