mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-25 17:45:50 +00:00
18 lines
582 B
TypeScript
18 lines
582 B
TypeScript
import { describe, expect, test } from 'bun:test'
|
|
|
|
import { isBridgeSafeCommand } from '../commands.js'
|
|
import clear from '../commands/clear/index.js'
|
|
import plan from '../commands/plan/index.js'
|
|
import proactive from '../commands/proactive.js'
|
|
|
|
describe('isBridgeSafeCommand', () => {
|
|
test('allows bridge-safe local-jsx commands', () => {
|
|
expect(isBridgeSafeCommand(plan)).toBe(true)
|
|
expect(isBridgeSafeCommand(proactive)).toBe(true)
|
|
})
|
|
|
|
test('continues allowing explicit local bridge-safe commands', () => {
|
|
expect(isBridgeSafeCommand(clear)).toBe(true)
|
|
})
|
|
})
|