Type the saved config in the API write allowlist test

This commit is contained in:
arc53-machine committed 2026-09-29 15:13:22 +01:00
1 parent 3dc5080058
commit 5b85eac858
1 file changed
+3 -1
@@ -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<Agent>);