From f7cba3f3a475c7b48182650c139de1bbc070ba80 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Thu, 19 Feb 2026 16:56:05 -0600 Subject: [PATCH] fix(cli): use bracket notation for index signature access in tests --- packages/cli/src/ui/commands/experimentCommand.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/ui/commands/experimentCommand.test.ts b/packages/cli/src/ui/commands/experimentCommand.test.ts index e8c8306f2c..9e413cc2fc 100644 --- a/packages/cli/src/ui/commands/experimentCommand.test.ts +++ b/packages/cli/src/ui/commands/experimentCommand.test.ts @@ -122,10 +122,9 @@ describe('experimentCommand', () => { ); it('should unset an experiment', async () => { - - ( - mockContext.services.settings.merged as Record - ).experimental = { + (mockContext.services.settings.merged as Record)[ + 'experimental' + ] = { 'enable-preview': true, }; await unsetCommand?.action!(mockContext, 'enable-preview');