From 869e9fdac59fe848b35d58a06dbca28b7488defd Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Fri, 19 Nov 2021 14:54:03 -0500 Subject: [PATCH 1/2] Update debug-info.ts --- .../@ember/test-helpers/-internal/debug-info.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addon-test-support/@ember/test-helpers/-internal/debug-info.ts b/addon-test-support/@ember/test-helpers/-internal/debug-info.ts index 37962efe7..0463de007 100644 --- a/addon-test-support/@ember/test-helpers/-internal/debug-info.ts +++ b/addon-test-support/@ember/test-helpers/-internal/debug-info.ts @@ -57,8 +57,20 @@ export function backburnerDebugInfoAvailable() { /** * Retrieves debug information from backburner's current deferred actions queue (runloop instance). + * The debug info returned includes details about anything that is currently unsettled (e.g. timers, + * pending test waiters, etc). + * * If the `getDebugInfo` method isn't available, it returns `null`. * + * @example + * + * ```js + * import { getDebugInfo } from '@ember/test-helpers'; + * + * // ...snip... + * getDebugInfo().toConsole(); + * ``` + * * @public * @returns {MaybeDebugInfo | null} Backburner debugInfo or, if the getDebugInfo method is not present, null */ From 38363764eea9051cca30aaef0832a1000dac298e Mon Sep 17 00:00:00 2001 From: Steve Calvert Date: Fri, 17 Dec 2021 14:50:01 -0800 Subject: [PATCH 2/2] Update addon-test-support/@ember/test-helpers/-internal/debug-info.ts --- addon-test-support/@ember/test-helpers/-internal/debug-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon-test-support/@ember/test-helpers/-internal/debug-info.ts b/addon-test-support/@ember/test-helpers/-internal/debug-info.ts index 0463de007..c7d86345a 100644 --- a/addon-test-support/@ember/test-helpers/-internal/debug-info.ts +++ b/addon-test-support/@ember/test-helpers/-internal/debug-info.ts @@ -63,7 +63,7 @@ export function backburnerDebugInfoAvailable() { * If the `getDebugInfo` method isn't available, it returns `null`. * * @example - * + * * ```js * import { getDebugInfo } from '@ember/test-helpers'; *