From 5b85eac85852e946c90ef7e3cfe67e71a369d868 Mon Sep 17 00:00:00 2001 From: arc53-machine <232052973+arc53-machine@users.noreply.github.com> Date: Tue, 29 Sep 2026 15:13:22 +0100 Subject: [PATCH] Type the saved config in the API write allowlist test --- frontend/src/agents/ApiWriteAllowlist.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/agents/ApiWriteAllowlist.test.tsx b/frontend/src/agents/ApiWriteAllowlist.test.tsx index 3a3c78c5..b10a18ba 100644 --- a/frontend/src/agents/ApiWriteAllowlist.test.tsx +++ b/frontend/src/agents/ApiWriteAllowlist.test.tsx @@ -135,7 +135,9 @@ describe('ApiWriteAllowlist', () => { it('saves on top of the last saved config, not unsaved form edits', async () => { updateAgent.mockResolvedValue({ ok: true }); - const saved = { guardrails: { controls: [] } }; + const saved = { guardrails: { controls: [] } } as unknown as NonNullable< + Agent['config'] + >; const draft = agent({ config: { guardrails: { controls: [{ id: 'unsaved' }] } }, } as unknown as Partial);