(
userSettings = {},
systemSettings = {},
workspaceSettings = {},
)
| 74 | }); |
| 75 | |
| 76 | const createMockSettings = ( |
| 77 | userSettings = {}, |
| 78 | systemSettings = {}, |
| 79 | workspaceSettings = {}, |
| 80 | ) => |
| 81 | new LoadedSettings( |
| 82 | { |
| 83 | settings: { customThemes: {}, mcpServers: {}, ...systemSettings }, |
| 84 | path: '/system/settings.json', |
| 85 | }, |
| 86 | { |
| 87 | settings: { |
| 88 | customThemes: {}, |
| 89 | mcpServers: {}, |
| 90 | ...userSettings, |
| 91 | }, |
| 92 | path: '/user/settings.json', |
| 93 | }, |
| 94 | { |
| 95 | settings: { customThemes: {}, mcpServers: {}, ...workspaceSettings }, |
| 96 | path: '/workspace/settings.json', |
| 97 | }, |
| 98 | [], |
| 99 | ); |
| 100 | |
| 101 | describe('Initial Rendering', () => { |
| 102 | it('should render the settings dialog with default state', () => { |
no outgoing calls
no test coverage detected