From 817654341a730276c83fcbfc8f31e4106d38dbee Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Mon, 11 Aug 2025 08:47:55 -0400 Subject: [PATCH] Update phase-interceptor.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- test/test-utils/phase-interceptor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-utils/phase-interceptor.ts b/test/test-utils/phase-interceptor.ts index f934b7f3bd8..4cc5006f427 100644 --- a/test/test-utils/phase-interceptor.ts +++ b/test/test-utils/phase-interceptor.ts @@ -356,7 +356,8 @@ export class PhaseInterceptor { * @param args - Additional arguments to pass to the original method. */ setMode(mode: UiMode, ...args: unknown[]): Promise { - const currentPhase = this.scene.phaseManager.getCurrentPhase()!; + // @ts-expect-error: `getCurrentPhase()` won't return `null` here + 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]);