From 8a50bce083ef759f25d6a7412b5b82912dbe4af1 Mon Sep 17 00:00:00 2001 From: Yassine <95612053+yassinedorbozgithub@users.noreply.github.com> Date: Fri, 30 May 2025 15:29:32 +0100 Subject: [PATCH] Update api/src/app.instance.ts Co-authored-by: Med Marrouchi --- api/src/app.instance.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/src/app.instance.ts b/api/src/app.instance.ts index 0447bb09..ec39b20e 100644 --- a/api/src/app.instance.ts +++ b/api/src/app.instance.ts @@ -22,6 +22,11 @@ export class AppInstance { return this.app; } + /** + * Checks whether the application context is initialized. + * This may return `false` in environments where the app instance is not set, + * such as when running in test env or CLI mode without a full application bootstrap. + */ static isReady(): boolean { return this.app !== null; }