MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createMockSettings

Function createMockSettings

packages/cli/src/ui/components/SettingsDialog.test.tsx:76–99  ·  view source on GitHub ↗
(
    userSettings = {},
    systemSettings = {},
    workspaceSettings = {},
  )

Source from the content-addressed store, hash-verified

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', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected