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');