From 6fb7e6182c79edc396662fb79d7a7319eb2a9da6 Mon Sep 17 00:00:00 2001 From: Katie Gengler Date: Mon, 9 Jan 2023 15:42:47 -0500 Subject: [PATCH] Don't swallow deprecations and warnings when there is no test context; allow them to proceed to the next handler --- addon-test-support/@ember/test-helpers/setup-context.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon-test-support/@ember/test-helpers/setup-context.ts b/addon-test-support/@ember/test-helpers/setup-context.ts index 87e88ac40..60971f283 100644 --- a/addon-test-support/@ember/test-helpers/setup-context.ts +++ b/addon-test-support/@ember/test-helpers/setup-context.ts @@ -39,6 +39,7 @@ import { registerDeprecationHandler((message, options, next) => { const context = getContext(); if (context === undefined) { + next.apply(null, [message, options]); return; } @@ -53,6 +54,7 @@ registerDeprecationHandler((message, options, next) => { registerWarnHandler((message, options, next) => { const context = getContext(); if (context === undefined) { + next.apply(null, [message, options]); return; }