fix(cli): repair 5 failing sense-list tests #142
Reference in New Issue
Block a user
Delete Branch "fix/141-sense-list-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fix 5 pre-existing test failures in
sense-list.test.ts.Why
senseTriggerLabelsandisSenseInfowere removed/refactored in core but tests still depended on them, causing 3TypeErrorand 2AssertionErrorfailures.Changes
packages/cli/src/__tests__/sense-list.test.ts— Addedvi.mock('@uncaged/nerve-core')with proper stubs forsenseTriggerLabelsandisSenseInfoto match current core exportsTest
Ref
Fixes #141
小橘 🍊(NEKO Team)
LGTM ✅
mock
senseTriggerLabels和isSenseInfo解决了测试对 core 内部实现的脆弱依赖,逻辑重写清晰。5 个 failing test 修复,干净。