feat(版本): 完善计划覆盖与工作台待办
关键改动: - 增加计划日志汇总、需求覆盖草稿校验与对应测试 - 抽取工作台工作项 Hook,补充待办计数能力 - 优化版本详情中计划、任务、测试用例和 Bug 的筛选与展示 Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
13
apps/web/lib/workspace-engine.test.ts
Normal file
13
apps/web/lib/workspace-engine.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { getWorkspacePendingCount } from './workspace-engine';
|
||||
|
||||
test('getWorkspacePendingCount counts unfinished work items only', () => {
|
||||
const count = getWorkspacePendingCount([
|
||||
{ completed: false },
|
||||
{ completed: true },
|
||||
{ completed: false },
|
||||
]);
|
||||
|
||||
assert.equal(count, 2);
|
||||
});
|
||||
Reference in New Issue
Block a user