From b4dd435d3e7b5bdc9e75db66f8ae88953baedf3e Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Mon, 11 Aug 2025 05:57:07 -0700 Subject: [PATCH] Re-add `!` and add `TODO` comment instead --- test/test-utils/phase-interceptor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-utils/phase-interceptor.ts b/test/test-utils/phase-interceptor.ts index 4cc5006f427..0d357a75557 100644 --- a/test/test-utils/phase-interceptor.ts +++ b/test/test-utils/phase-interceptor.ts @@ -356,8 +356,8 @@ export class PhaseInterceptor { * @param args - Additional arguments to pass to the original method. */ setMode(mode: UiMode, ...args: unknown[]): Promise { - // @ts-expect-error: `getCurrentPhase()` won't return `null` here - const currentPhase = this.scene.phaseManager.getCurrentPhase(); + // TODO: remove the `!` in PR 6243 / after PR 6243 is merged + const currentPhase = this.scene.phaseManager.getCurrentPhase()!; const instance = this.scene.ui; console.log("setMode", `${UiMode[mode]} (=${mode})`, args); const ret = this.originalSetMode.apply(instance, [mode, ...args]);