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; }