From 136e11b9769a41bfd3fe32f86e1a935165359b4e Mon Sep 17 00:00:00 2001 From: omartelo Date: Mon, 5 Oct 2026 11:08:56 -0300 Subject: [PATCH] test: say the ask engine test's first question may be missing tsc with noUncheckedIndexedAccess flagged asked[0] as possibly undefined. A missing question still fails the assertion. --- tests/mod-control.engine.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mod-control.engine.test.ts b/tests/mod-control.engine.test.ts index ba2f404..58a9e18 100644 --- a/tests/mod-control.engine.test.ts +++ b/tests/mod-control.engine.test.ts @@ -163,7 +163,7 @@ test('an ask from lich is answered by a fork and the answer rides the ack', asyn await $.session.start({ cwd: '/w', surface: 'terminal', isInteractive: true }) await clock.settle() expect(asked.length).toBe(1) - expect(asked[0].endsWith('Question: what are you on?')).toBe(true) + expect(asked[0]?.endsWith('Question: what are you on?')).toBe(true) expect(world.acks).toEqual([ { session_id: 'lich-1', id: 'm9', kind: 'ask', ok: true, answer: 'Fixing the login test.' }, ])