Phase 2 Testing: decouple createWorkflow from I/O imports #123

Closed
opened 2026-05-08 06:17:56 +00:00 by xiaoju · 0 comments
Owner

验证目标

createWorkflow 不直接 import merkle/CAS 实现,所有 I/O 通过注入的接口完成。

测试步骤

  • Step 1: createWorkflow 无 I/O import

    grep -E "import.*from.*merkle|import.*from.*cas/cas|import.*from.*node:" packages/workflow-runtime/src/**/create-workflow.ts || echo "PASS"
    

    预期: PASS

  • Step 2: CasStore 只是 type

    grep -c "createCasStore" packages/workflow-runtime/src/**/*.ts || echo "0"
    

    预期: 0(createCasStore 不在 runtime 中)

  • Step 3: 现有测试通过

    bun test
    

    预期: 所有测试通过

验证完成标准

所有 checkbox 打勾
bun test 全过

Ref: #121

## 验证目标 `createWorkflow` 不直接 import merkle/CAS 实现,所有 I/O 通过注入的接口完成。 ## 测试步骤 - [ ] **Step 1: createWorkflow 无 I/O import** ```bash grep -E "import.*from.*merkle|import.*from.*cas/cas|import.*from.*node:" packages/workflow-runtime/src/**/create-workflow.ts || echo "PASS" ``` **预期:** PASS - [ ] **Step 2: CasStore 只是 type** ```bash grep -c "createCasStore" packages/workflow-runtime/src/**/*.ts || echo "0" ``` **预期:** 0(createCasStore 不在 runtime 中) - [ ] **Step 3: 现有测试通过** ```bash bun test ``` **预期:** 所有测试通过 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ bun test 全过 Ref: #121
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#123