mirror of
https://github.com/Gitlawb/openclaude.git
synced 2026-11-06 12:50:54 -04:00
test(mcp): remove always-skipped CHICAGO_MCP toggle test (#2309)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { feature } from 'bun:bundle'
|
||||
import { afterEach, beforeEach, expect, test } from 'bun:test'
|
||||
import {
|
||||
acquireSharedMutationLock,
|
||||
@@ -105,14 +104,3 @@ test('enabling the last inherited server keeps an explicit empty override', () =
|
||||
expect(isMcpServerDisabled('a')).toBe(false)
|
||||
expect(getGlobalConfig().disabledMcpServers).toEqual(['a'])
|
||||
})
|
||||
|
||||
test.skipIf(feature('CHICAGO_MCP') ? false : true)('builtin toggles leave disabled lists unchanged', () => {
|
||||
getGlobalConfig().disabledMcpServers = ['computer-use', 'other']
|
||||
expect(isMcpServerDisabled('computer-use')).toBe(true)
|
||||
setMcpServerEnabled('computer-use', true)
|
||||
expect(isMcpServerDisabled('computer-use')).toBe(false)
|
||||
setMcpServerEnabled('computer-use', false)
|
||||
expect(isMcpServerDisabled('computer-use')).toBe(true)
|
||||
expect(getGlobalConfig().disabledMcpServers).toEqual(['computer-use', 'other'])
|
||||
expect(getCurrentProjectConfig().disabledMcpServers).toBeUndefined()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user