fix(build): resolve TS4111 and TS2339 errors in config and tests

This commit is contained in:
Coco Sheng
2026-05-04 16:48:18 -04:00
parent a976c227c2
commit 13603a30b7
2 changed files with 17 additions and 8 deletions
@@ -104,8 +104,16 @@ describe('Issue 25428 Regression', () => {
const settings = loadSettings('/mock/workspace-' + Math.random());
expect(settings.user.settings.general?.plan?.enabled).toBe(true);
expect(settings.user.settings.experimental?.plan).toBeUndefined();
expect(settings.user.settings.experimental?.keepMe).toBe('important');
expect(
(settings.user.settings.experimental as Record<string, unknown>)?.[
'plan'
],
).toBeUndefined();
expect(
(settings.user.settings.experimental as Record<string, unknown>)?.[
'keepMe'
],
).toBe('important');
expect(updateSettingsFilePreservingFormat).toHaveBeenCalled();
const lastCall = vi