From ec03db71993802183ed4a1e19eb321820161b8b5 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 23 Nov 2023 14:29:04 +0100 Subject: [PATCH] DEV: Stringify settledState debug info (#24526) So it actually shows up in CI (in a form other than `[Object object]`) --- app/assets/javascripts/discourse/tests/setup-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/tests/setup-tests.js b/app/assets/javascripts/discourse/tests/setup-tests.js index 32bd7bf9e58..7498575fa48 100644 --- a/app/assets/javascripts/discourse/tests/setup-tests.js +++ b/app/assets/javascripts/discourse/tests/setup-tests.js @@ -417,7 +417,7 @@ function patchFailedAssertion() { // eslint-disable-next-line no-console console.warn( "ℹ️ Hint: when the assertion failed, the Ember runloop was not in a settled state. Maybe you missed an `await` further up the test? Or maybe you need to manually add `await settled()` before your assertion?", - getSettledState() + JSON.stringify(getSettledState()) ); }