test(mcp): remove always-skipped CHICAGO_MCP toggle test (#2309)

This commit is contained in:
JATMN
2026-10-21 08:51:13 -07:00
committed by GitHub
parent 5a1fbe03e6
commit 9254846b52
-12
View File
@@ -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()
})