refactor: statusbar、companion、herdr 外掛改名加上 jsc- 前綴

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
root
2026-10-13 07:43:50 +00:00
co-authored by Claude Sonnet 5.5
parent f10b168c28
commit 58e2b2d26a
53 changed files with 28 additions and 25 deletions
@@ -0,0 +1,17 @@
import { describe, expect, test } from 'claude-code/testing'
import { isVerifyCommand } from './verify'
describe('isVerifyCommand', () => {
test('常見的測試與 build 指令算驗證指令', () => {
for (const cmd of ['bun test', 'npm test', 'npm run test -- --watch', 'pnpm build', 'pytest -q', 'tsc -p .', 'cargo build --release', 'go test ./...', 'cd app && npm run build']) {
expect(isVerifyCommand(cmd), cmd).toBe(true)
}
})
test('其他指令不算', () => {
for (const cmd of ['grep foo src', 'ls -la', 'git status', 'cat test.txt', 'echo build', '']) {
expect(isVerifyCommand(cmd), cmd).toBe(false)
}
})
})